Ergo\Routing\Router::routeByName PHP 메소드

routeByName() 공개 메소드

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