/** * Returns the class name for a new instance, taking into account the * class-extension API. * * @param string $className Base class name to evaluate * @return string Final class name to instantiate with "new [classname] */ protected static function getClassName($className) { if (class_exists($className)) { while (\TYPO3\CMS\Core\Autoloader::getClassPathByRegistryLookup('ux_' . $className) !== NULL) { $className = 'ux_' . $className; } } return \TYPO3\CMS\Core\Autoloader::getClassNameForAlias($className); }
/** * @test */ public function checkClassNamesNotExtbaseSchemePassAutoloaderUntouched() { $class = '\\Symfony\\Foo\\Bar'; $this->assertNull(\TYPO3\CMS\Core\Autoloader::getClassPathByRegistryLookup($class)); }