protected function matchUrlWithParameters($url)
    {
        foreach ($this->routes as $route) {
            if ($route->matchWithParameters($url)) {
                return $route;
            }
        }
        return null;
    }
protected function matchUrlWithParameters($url)
    {
        foreach ($this->routes as $route) {
            if ($route->matchWithParameters($url)) {
                return $route;
            }
        }
        return null;
    }
protected function matchUrlWithParameters ( $ url ) { foreach ( $ this -> routes as $ route ) { if ( $ route -> matchWithParameters ( $ url ) ) { return $ route ; } } return null ; }
Loop through routes and try to match with parameters.

@param string $url

@return \Parable\Routing\Route|null
Loop through routes and try to match with parameters .