ControllerExtraBundle.php
private function registerAnnotations(array $annotations)
    {
        $kernel = $this
            ->container
            ->get('kernel');

        foreach ($annotations as $annotation) {
            AnnotationRegistry::registerFile($kernel
                ->locateResource($annotation)
            );
        }
    }
private function registerAnnotations(array $annotations)
    {
        $kernel = $this
            ->container
            ->get('kernel');

        foreach ($annotations as $annotation) {
            AnnotationRegistry::registerFile($kernel
                ->locateResource($annotation)
            );
        }
    }
private function registerAnnotations ( array $ annotations ) { $ kernel = $ this -> container -> get ( 'kernel' ) ; foreach ( $ annotations as $ annotation ) { AnnotationRegistry :: registerFile ( $ kernel -> locateResource ( $ annotation ) ) ; } }
Register annotations.

@param string[] Annotations
Register annotations .