/**
  * {@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()];
         }
     }
 }