src/Url.php
public static function set($url = null, array $config = [])
    {
        $config['class'] = static::className();
        return Instance::ensure($config, static::className(), [$url]);
    }
public static function set($url = null, array $config = [])
    {
        $config['class'] = static::className();
        return Instance::ensure($config, static::className(), [$url]);
    }
public static function set ( $ url = null , array $ config = [ ] ) { $ config [ 'class' ] = static :: className ( ) ; return Instance :: ensure ( $ config , static :: className ( ) , [ $ url ] ) ; }
Modify URL.

@param string|null $url URL for modify (default: NULL)
@param array $config the configuration. It can be either a string representing the class name
or an array representing the object configuration.
@return $this
Modify URL .