Ergo\Routing\Router::routeByName PHP Method

routeByName() public method

Looks up a route by name
public routeByName ( $name ) : Route
return 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}'");
    }