src/Routing/Router.php
public function route($name)
    {
        if (array_key_exists($name, $this->allNames)) {
            return $this->allNames[$name];
        }

        return null;
    }
public function route($name)
    {
        if (array_key_exists($name, $this->allNames)) {
            return $this->allNames[$name];
        }

        return null;
    }
public function route ( $ name ) { if ( array_key_exists ( $ name , $ this -> allNames ) ) { return $ this -> allNames [ $ name ] ; } return null ; }
Find a route by name.

@param $name
@return null|Route
Find a route by name .