src/UrlRedirect.php
public static function resolve($oldUrl)
    {
        $url = new Url($oldUrl);

        foreach (static::$urls as $method => $matches) {
            if ($url->match($matches)) {
                return static::$method($url);
            }
        }

        return $oldUrl;
    }
public static function resolve($oldUrl)
    {
        $url = new Url($oldUrl);

        foreach (static::$urls as $method => $matches) {
            if ($url->match($matches)) {
                return static::$method($url);
            }
        }

        return $oldUrl;
    }
public static function resolve ( $ oldUrl ) { $ url = new Url ( $ oldUrl ) ; foreach ( static :: $ urls as $ method => $ matches ) { if ( $ url -> match ( $ matches ) ) { return static :: $ method ( $ url ) ; } } return $ oldUrl ; }
Resolve the url redirection

@param string $oldUrl Url to resolve

@return string
Resolve the url redirection