/** * {@inheritDoc} */ public function collect() { $routeInfo = $this->router->dispatch($this->request); $route = isset($routeInfo[1]) ? $this->router->lookupRoute($routeInfo[1]) : null; return $route ? $this->getRouteInformation($route) : null; }