Documentation

UriResolver
in package

FinalYes

since version 7.0.0

Tags
codeCoverageIgnore
see
BaseUri

Table of Contents

Methods

relativize()  : UriInterface|UriInterface
Relativizes a URI according to a base URI.
resolve()  : UriInterface|UriInterface
Resolves a URI against a base URI using RFC3986 rules.

Methods

relativize()

Relativizes a URI according to a base URI.

public static relativize(UriInterface|UriInterface $uri, UriInterface|UriInterface $baseUri) : UriInterface|UriInterface

use League\Uri\BaseUri::relativize() instead

This method MUST retain the state of the submitted URI instance, and return a URI instance of the same type that contains the applied modifications.

This method MUST be transparent when dealing with error and exceptions. It MUST not alter or silence them apart from validating its own parameters.

Parameters
$uri : UriInterface|UriInterface
$baseUri : UriInterface|UriInterface
Return values
UriInterface|UriInterface

resolve()

Resolves a URI against a base URI using RFC3986 rules.

public static resolve(UriInterface|UriInterface $uri, UriInterface|UriInterface $baseUri) : UriInterface|UriInterface

use League\Uri\BaseUri::resolve() instead

This method MUST retain the state of the submitted URI instance, and return a URI instance of the same type that contains the applied modifications.

This method MUST be transparent when dealing with error and exceptions. It MUST not alter or silence them apart from validating its own parameters.

Parameters
$uri : UriInterface|UriInterface
$baseUri : UriInterface|UriInterface
Return values
UriInterface|UriInterface

        
On this page

Search results