src/AbstractUrl.php
public static function createFromServer(array $server)
    {
        $scheme = self::fetchServerScheme($server);
        $host = self::fetchServerHost($server);
        $port = self::fetchServerPort($server);
        $request = self::fetchServerRequestUri($server);

        return self::createFromUrl($scheme.$host.$port.$request);
    }
public static function createFromServer(array $server)
    {
        $scheme = self::fetchServerScheme($server);
        $host = self::fetchServerHost($server);
        $port = self::fetchServerPort($server);
        $request = self::fetchServerRequestUri($server);

        return self::createFromUrl($scheme.$host.$port.$request);
    }
public static function createFromServer ( array $ server ) { $ scheme = self :: fetchServerScheme ( $ server ) ; $ host = self :: fetchServerHost ( $ server ) ; $ port = self :: fetchServerPort ( $ server ) ; $ request = self :: fetchServerRequestUri ( $ server ) ; return self :: createFromUrl ( $ scheme . $ host . $ port . $ request ) ; }
Return a instance of Url from a server array

@param array $server the server array

@return static

@throws RuntimeException If the URL can not be parse
Return a instance of Url from a server array