Lines Matching refs:base

595 the base URI. Relative references can be divided into several forms according to
633 `public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool`
636 fragment component, identical to the base URI. When no base URI is given, only an empty URI referen…
689 `GuzzleHttp\Psr7\UriResolver` provides methods to resolve a URI reference in the context of a base
695 `public static function resolve(UriInterface $base, UriInterface $rel): UriInterface`
697 Converts the relative URI into a new URI that is resolved against the base URI.
708 `public static function relativize(UriInterface $base, UriInterface $target): UriInterface`
710 Returns the target URI as a relative reference from the base URI. This method is the counterpart to…
713 (string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target))
716 One use-case is to use the current request URI as base URI and then generate relative links in your…
720 $base = new Uri('http://example.com/a/b/');
721 echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'.
722 echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'.
723 echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'.
724 echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org…
808 This of course assumes they will be resolved against the same base URI. If this is not the case, de…