public static function Uri::isAbsolutePathReference in Auth0 Single Sign On 8.2
Whether the URI is a absolute-path reference.
A relative reference that begins with a single slash character is termed an absolute-path reference.
@link https://tools.ietf.org/html/rfc3986#section-4.2
Parameters
UriInterface $uri:
Return value
bool
File
- vendor/
guzzlehttp/ psr7/ src/ Uri.php, line 204
Class
- Uri
- PSR-7 URI implementation.
Namespace
GuzzleHttp\Psr7Code
public static function isAbsolutePathReference(UriInterface $uri) {
return $uri
->getScheme() === '' && $uri
->getAuthority() === '' && isset($uri
->getPath()[0]) && $uri
->getPath()[0] === '/';
}