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;
} /**
* {@inheritdoc}
*/