/** * {@inheritdoc} */ public function getRouteByName($name) { $route = $this->routeManager->findVisibleByName($name); if (null === $route) { throw new RouteNotFoundException(sprintf("No route found for path %s", $name)); } return $route; }
/** * {@inheritdoc} */ public function findVisibleByName($name) { if (isset($this->routes[$name])) { $route = $this->routes[$name]; return $route->isVisible() ? $route : null; } return $this->routeManager->findVisibleByName($name); }