original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Builds the config for a controller.
  
  @param  string          $name
  @param  ClassReflection $reflection
  @param  ArrayObject     $config
  @return ArrayObject     Returns the config array object.
docstring_tokens: Builds the config for a controller .