2 namespace TYPO3\CMS\Fluid\Compatibility;
44 $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
45 $this->injectDocCommentParser($this->objectManager->get(\TYPO3\CMS\Extbase\Reflection\DocCommentParser::class));
46 $this->injectReflectionService($this->objectManager->get(\TYPO3\CMS\Extbase\Reflection\ReflectionService::class));
58 $namespaceParts = explode(
'\\', $namespace);
59 if ($namespaceParts[count($namespaceParts) - 1] ==
'') {
61 $classFilePathAndName = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(\TYPO3\CMS\Core\Utility\GeneralUtility::camelCaseToLowerCaseUnderscored($namespaceParts[2])) .
'Classes/';
62 $classFilePathAndName .= implode(array_slice($namespaceParts, 3, -1),
'/') .
'/';
63 $classNames = array();
79 $dh = opendir($directory);
81 while (($file = readdir($dh)) !==
false) {
82 if ($file ==
'.' || $file ==
'..' || $file ==
'.svn') {
85 if (is_file($directory . $file)) {
86 if (substr($file, 0, 8) ==
'Abstract') {
89 $classNames[] = $namespace . substr($file, 0, -4);
90 }
elseif (is_dir($directory . $file)) {