You are here

public static function Uri::fromParts in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/Uri.php \GuzzleHttp\Psr7\Uri::fromParts()

Create a URI from a hash of parse_url parts.

Parameters

array $parts:

Return value

self

File

vendor/guzzlehttp/psr7/src/Uri.php, line 262

Class

Uri
Basic PSR-7 URI implementation.

Namespace

GuzzleHttp\Psr7

Code

public static function fromParts(array $parts) {
  $uri = new self();
  $uri
    ->applyParts($parts);
  return $uri;
}