$this->fileCache = FileCacheFactory::
get('annotation_discovery:' .
$file_cache_suffix);
} /**
* Gets the used doctrine annotation reader.
*
* @return \Doctrine\Common\Annotations\Reader
* The annotation reader.
*/
protected function getAnnotationReader() { if (!
isset($this->annotationReader
)) { $this->annotationReader =
new SimpleAnnotationReader();
// Add the namespaces from the main plugin annotation, like @EntityType.
$namespace =
substr($this->pluginDefinitionAnnotationName, 0,
strrpos($this->pluginDefinitionAnnotationName, '\\'
));
$this->annotationReader->
addNamespace($namespace);
// Register additional namespaces to be scanned for annotations.
foreach ($this->annotationNamespaces
as $namespace) { $this->annotationReader->
addNamespace($namespace);
} } return $this->annotationReader;
}