You are here

public static function Uri::fromParts in Auth0 Single Sign On 8.2

Creates a URI from a hash of `parse_url` components.

@link http://php.net/manual/en/function.parse-url.php

Parameters

array $parts:

Return value

UriInterface

Throws

\InvalidArgumentException If the components do not form a valid URI.

File

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

Class

Uri
PSR-7 URI implementation.

Namespace

GuzzleHttp\Psr7

Code

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