Example #1
0
 /**
  * {@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;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function findVisibleByName($name)
 {
     if (isset($this->routes[$name])) {
         $route = $this->routes[$name];
         return $route->isVisible() ? $route : null;
     }
     return $this->routeManager->findVisibleByName($name);
 }