final class ResolveContext (View source)

Simple DTO wrapping the values required for a Router::resolve() call

Methods

__construct(UriInterface $baseUri, array $routeValues, bool $forceAbsoluteUri, string $uriPathPrefix = '')

No description

UriInterface
getBaseUri()

No description

array
getRouteValues()

No description

bool
isForceAbsoluteUri()

No description

string
getUriPathPrefix()

No description

Details

__construct(UriInterface $baseUri, array $routeValues, bool $forceAbsoluteUri, string $uriPathPrefix = '')

No description

Parameters

UriInterface $baseUri

The base URI, retrieved from the current request URI or from configuration, if specified. Required to fill in parts of the result when resolving absolute URIs

array $routeValues

Route values to build the URI, for example ['@action' => 'index', 'someArgument' => 'foo', ...]

bool $forceAbsoluteUri

Whether or not an absolute URI is to be returned

string $uriPathPrefix

A prefix to be prepended to any resolved URI. Not allowed to start with "/".

UriInterface getBaseUri()

No description

Return Value

UriInterface

array getRouteValues()

No description

Return Value

array

bool isForceAbsoluteUri()

No description

Return Value

bool

string getUriPathPrefix()

No description

Return Value

string