/** * Get the route information for a given route. * * @param string $name * @param \Symfony\Component\Routing\Route $route * @return array */ protected function getRouteInformation($name, Route $route) { $uri = head($route->getMethods()) . ' ' . $route->getPath(); $action = $route->getAction() ?: 'Closure'; return array('host' => $route->getHost(), 'uri' => $uri, 'name' => $this->getRouteName($name), 'action' => $action, 'before' => $this->getBeforeFilters($route), 'after' => $this->getAfterFilters($route)); }