public function Uri::__construct in Lockr 7.3
Parameters
string $uri URI to parse:
File
- vendor/
guzzlehttp/ psr7/ src/ Uri.php, line 65
Class
- Uri
- PSR-7 URI implementation.
Namespace
GuzzleHttp\Psr7Code
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);
}
}