/**
  * @param FilterControllerEvent $event
  *
  * @return
  */
 public function onController(FilterControllerEvent $event)
 {
     $callable = $event->getController();
     if (true === is_array($callable)) {
         $callable = current($callable);
     }
     if (true === $callable instanceof Prototype) {
         $this->container->applyTo($callable);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function collect(Request $request, Response $response, \Exception $exception = null)
 {
     foreach ($this->container->getMethods() as $domain => $methods) {
         foreach ($methods as $alias => $method) {
             $rflMethod = $method->getReflection();
             $rflClass = $rflMethod->getDeclaringClass();
             $context = new Context($rflClass->getNamespaceName(), [], $rflClass->getShortName());
             $documentation = new DocBlock($rflMethod, $context);
             $this->data['methods'][$alias] = ['alias' => $alias, 'documentation' => $documentation, 'domain' => $domain, 'method' => $rflMethod->getName()];
         }
     }
 }