public function parseReflectedController($name, ClassReflection $reflection, ArrayObject $config)
    {
        $annotations = $reflection->getAnnotations($this->annotationManager);

        if ($annotations instanceof AnnotationCollection) {
            $this->processor->processController($name, $annotations);
        }

        foreach ($reflection->getMethods() as $method) {
            $annotations = $method->getAnnotations($this->annotationManager);

            if (!$annotations instanceof AnnotationCollection) {
                continue;
            }

            $this->processor->processMethod($method->getName(), $annotations, $config);
        }

        return $config;
    }
public function parseReflectedController($name, ClassReflection $reflection, ArrayObject $config)
    {
        $annotations = $reflection->getAnnotations($this->annotationManager);

        if ($annotations instanceof AnnotationCollection) {
            $this->processor->processController($name, $annotations);
        }

        foreach ($reflection->getMethods() as $method) {
            $annotations = $method->getAnnotations($this->annotationManager);

            if (!$annotations instanceof AnnotationCollection) {
                continue;
            }

            $this->processor->processMethod($method->getName(), $annotations, $config);
        }

        return $config;
    }
public function parseReflectedController ( $ name , ClassReflection $ reflection , ArrayObject $ config ) { $ annotations = $ reflection -> getAnnotations ( $ this -> annotationManager ) ; if ( $ annotations instanceof AnnotationCollection ) { $ this -> processor -> processController ( $ name , $ annotations ) ; } foreach ( $ reflection -> getMethods ( ) as $ method ) { $ annotations = $ method -> getAnnotations ( $ this -> annotationManager ) ; if ( ! $ annotations instanceof AnnotationCollection ) { continue ; } $ this -> processor -> processMethod ( $ method -> getName ( ) , $ annotations , $ config ) ; } return $ config ; }
Builds the config for a controller.

@param  string          $name
@param  ClassReflection $reflection
@param  ArrayObject     $config
@return ArrayObject     Returns the config array object.
Builds the config for a controller .