public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $annotationManager = new AnnotationManager();

        $parser = new DoctrineAnnotationParser();

        foreach ($this->defaultAnnotations as $annotationName) {
            $class = 'TjoAnnotationRouter\\Annotation\\' . $annotationName;
            $parser->registerAnnotation($class);
        }

        $annotationManager->attach($parser);

        return $annotationManager;
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $annotationManager = new AnnotationManager();

        $parser = new DoctrineAnnotationParser();

        foreach ($this->defaultAnnotations as $annotationName) {
            $class = 'TjoAnnotationRouter\\Annotation\\' . $annotationName;
            $parser->registerAnnotation($class);
        }

        $annotationManager->attach($parser);

        return $annotationManager;
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ annotationManager = new AnnotationManager ( ) ; $ parser = new DoctrineAnnotationParser ( ) ; foreach ( $ this -> defaultAnnotations as $ annotationName ) { $ class = 'TjoAnnotationRouter\\Annotation\\' . $ annotationName ; $ parser -> registerAnnotation ( $ class ) ; } $ annotationManager -> attach ( $ parser ) ; return $ annotationManager ; }
Returns a configured instance of Zend\Code\Annotation\AnnotationManager

@return AnnotationManager
Returns a configured instance of Zend \ Code \ Annotation \ AnnotationManager