/** * {@inheritdoc} */ public function all() { $routes = $this->routes; foreach ($this->routeManager->all() as $route) { if (false === isset($routes[$route->getName()])) { $routes[$route->getName()] = $route; } } return array_values($routes); }