class CanonicalUrlResolver implements UrlResolverInterface (View source)

Properties

protected Request $request
protected Application $app
protected Url $cached

Methods

__construct(Application $app, Request $request)

CanonicalUrlResolver constructor.

URLInterface|null
resolve(array $arguments, URLInterface|null $resolved = null)

Resolve url's from any type of input.

clearCached()

Clear the cached canonical URL.

Details

__construct(Application $app, Request $request)

CanonicalUrlResolver constructor.

Parameters

Application $app
Request $request

URLInterface|null resolve(array $arguments, URLInterface|null $resolved = null)

Resolve url's from any type of input.

This method MUST either return a \League\URL\URLInterface when a url is resolved or null when a url cannot be resolved.

Parameters

array $arguments A list of the arguments
URLInterface|null $resolved

Return Value

URLInterface|null

See also

\Concrete\Core\Url\Resolver\UrlResolverInterface::resolve()

clearCached()

Clear the cached canonical URL.