Uri\Rfc3986\Uri::__construct
Construct the Uri object
説明
public Uri\Rfc3986\Uri::__construct(string $uri, Uri\Rfc3986\Urinull $baseUrl = null)
Constructs the Uri\Rfc3986\Uri object.
パラメータ
-
uri
-
URI to parse.
-
baseUrl
-
When a string is passed,
uri is applied on
baseUrl, if uri is a relative reference.
If either null is passed, or uri is a not a relative reference, then
baseUrl doesn't have any effect.
エラー / 例外
If the resulting URI is invalid, a Uri\InvalidUriException is thrown.
参考
- Uri\Rfc3986\Uri::parse
- Uri\Rfc3986\Uri::resolve
- Uri\WhatWg\Url::__construct