src/Router.php
public function get($name)
    {
        if (! isset($this->routes[$name])) {
            throw new InvalidArgumentException(
                sprintf('The route with given name "%s" not exists.', $name)
            );
        }

        return $this->routes[$name];
    }
public function get($name)
    {
        if (! isset($this->routes[$name])) {
            throw new InvalidArgumentException(
                sprintf('The route with given name "%s" not exists.', $name)
            );
        }

        return $this->routes[$name];
    }
public function get ( $ name ) { if ( ! isset ( $ this -> routes [ $ name ] ) ) { throw new InvalidArgumentException ( sprintf ( 'The route with given name "%s" not exists.' , $ name ) ) ; } return $ this -> routes [ $ name ] ; }
Gets the route.

@param string $name The route name

@throws \InvalidArgumentException If the route with given name not exists

@return RouteInterface The route
Gets the route .