public function matchUrl($url)
    {
        $url = '/' . ltrim($url, '/');
        $url = $this->sanitizeUrl($url);

        if ($url && $route = $this->matchUrlDirectly($url)) {
            return $route;
        }
        if ($url && $route = $this->matchUrlWithParameters($url)) {
            return $route;
        }
        return null;
    }
public function matchUrl($url)
    {
        $url = '/' . ltrim($url, '/');
        $url = $this->sanitizeUrl($url);

        if ($url && $route = $this->matchUrlDirectly($url)) {
            return $route;
        }
        if ($url && $route = $this->matchUrlWithParameters($url)) {
            return $route;
        }
        return null;
    }
public function matchUrl ( $ url ) { $ url = '/' . ltrim ( $ url , '/' ) ; $ url = $ this -> sanitizeUrl ( $ url ) ; if ( $ url && $ route = $ this -> matchUrlDirectly ( $ url ) ) { return $ route ; } if ( $ url && $ route = $ this -> matchUrlWithParameters ( $ url ) ) { return $ route ; } return null ; }
Try to find a match in all available routes.

@param string $url

@return \Parable\Routing\Route|null
Try to find a match in all available routes .