public static function createFromEnvironment(array $server): self
    {
        [$user, $pass] = self::fetchUserInfo($server);
        [$host, $port] = self::fetchHostname($server);
        [$path, $query] = self::fetchRequestUri($server);

        return Uri::createFromComponents([
            'scheme' => self::fetchScheme($server),
            'user' => $user,
            'pass' => $pass,
            'host' => $host,
            'port' => $port,
            'path' => $path,
            'query' => $query,
        ]);
    }
public static function createFromEnvironment(array $server): self
    {
        [$user, $pass] = self::fetchUserInfo($server);
        [$host, $port] = self::fetchHostname($server);
        [$path, $query] = self::fetchRequestUri($server);

        return Uri::createFromComponents([
            'scheme' => self::fetchScheme($server),
            'user' => $user,
            'pass' => $pass,
            'host' => $host,
            'port' => $port,
            'path' => $path,
            'query' => $query,
        ]);
    }
public static function createFromEnvironment ( array $ server ) : self { [ $ user , $ pass ] = self :: fetchUserInfo ( $ server ) ; [ $ host , $ port ] = self :: fetchHostname ( $ server ) ; [ $ path , $ query ] = self :: fetchRequestUri ( $ server ) ; return Uri :: createFromComponents ( [ 'scheme' => self :: fetchScheme ( $ server ) , 'user' => $ user , 'pass' => $ pass , 'host' => $ host , 'port' => $ port , 'path' => $ path , 'query' => $ query , ] ) ; }
Create a new instance from the environment.
Create a new instance from the environment .