protected function reflectClass($className) { parent::reflectClass($className); // Unfortunately, we have to create a new Reflector for the class. // Which has a negative effect on performance. But we cannot re-use the // reflector from our parent, because it is outside our scope and // Typo3\Reflection\ReflectionClass does not support getUseStatements(). $classFinder = $this->serviceManager->get('DocBlockTags\\ClassFinder'); $reflectionParser = new StaticReflectionParser($className, $classFinder); // Add tags as annotations. $this->addClassTagsAsAnnotations($reflectionParser); $this->addPropertyTagsAsAnnotations($reflectionParser); $this->addMethodTagsAsAnnotations($reflectionParser); // > parse @property tags for information about properties $this->extractPropertyInfoFromTags($className); $this->extractMethodInfoFromTags($className); }