/** * Gets the 'annotations.parser' service. * * This service is shared. * This method always returns the same instance of the service. * * @return Doctrine\Common\Annotations\Parser A Doctrine\Common\Annotations\Parser instance. */ protected function getAnnotations_ParserService() { $this->services['annotations.parser'] = $instance = new \Doctrine\Common\Annotations\Parser(); $instance->setAutoloadAnnotations(true); $instance->setAnnotationNamespaceAlias('Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\', 'extra'); return $instance; }
/** * Sets an alias for an annotation namespace. * * @param string $namespace * @param string $alias */ public function setAnnotationNamespaceAlias($namespace, $alias) { $this->parser->setAnnotationNamespaceAlias($namespace, $alias); }