Ergo\Routing\Router::routeByName PHP Méthode

routeByName() public méthode

Looks up a route by name
public routeByName ( $name ) : Route
Résultat Route
    public function routeByName($name)
    {
        if (isset($this->_routes[$name])) {
            return $this->_routes[$name];
        }
        if (isset($this->_customRoutes[$name])) {
            return $this->_customRoutes[$name];
        }
        throw new LookupException("No route named '{$name}'");
    }