You are here

public static function Uri::resolve in Lockr 7.3

Converts the relative URI into a new URI that is resolved against the base URI.

Parameters

UriInterface $base Base URI:

string|UriInterface $rel Relative URI:

Return value

UriInterface

Deprecated

since version 1.4. Use UriResolver::resolve instead.

See also

UriResolver::resolve

File

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

Class

Uri
PSR-7 URI implementation.

Namespace

GuzzleHttp\Psr7

Code

public static function resolve(UriInterface $base, $rel) {
  if (!$rel instanceof UriInterface) {
    $rel = new self($rel);
  }
  return UriResolver::resolve($base, $rel);
}