public static function resolve(Url $url)
    {
        foreach (self::$patterns as $method => $pattern) {
            if ($url->match($pattern)) {
                return self::$method($url);
            }
        }

        return $url;
    }
public static function resolve(Url $url)
    {
        foreach (self::$patterns as $method => $pattern) {
            if ($url->match($pattern)) {
                return self::$method($url);
            }
        }

        return $url;
    }
public static function resolve ( Url $ url ) { foreach ( self :: $ patterns as $ method => $ pattern ) { if ( $ url -> match ( $ pattern ) ) { return self :: $ method ( $ url ) ; } } return $ url ; }
Resolve the url redirection.

@param Url $url

@return Url
Resolve the url redirection .