/** * {@inheritdoc} */ public function getRoutesByNames($names) { if (null !== $names && is_array($names)) { return $this->routeManager->findVisibleByNames($names); } return array(); }
/** * {@inheritdoc} */ public function findVisibleByNames(array $names) { $routes = array(); $diffNames = array_diff($names, array_keys($this->routes)); foreach ($this->routes as $name => $route) { if (in_array($name, $names) && $route->isVisible()) { $routes[] = $route; } } return array_merge($routes, $this->routeManager->findVisibleByNames($diffNames)); }