You are here

public function Uri::__construct in Auth0 Single Sign On 8.2

Parameters

string $uri URI to parse:

File

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

Class

Uri
PSR-7 URI implementation.

Namespace

GuzzleHttp\Psr7

Code

public function __construct($uri = '') {

  // weak type check to also accept null until we can add scalar type hints
  if ($uri != '') {
    $parts = parse_url($uri);
    if ($parts === false) {
      throw new \InvalidArgumentException("Unable to parse URI: {$uri}");
    }
    $this
      ->applyParts($parts);
  }
}