class PathUrlResolver implements UrlResolverInterface, ApplicationAwareInterface (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Properties

protected Application $app from  ApplicationAwareTrait
protected Repository $config
protected CanonicalUrlResolver $canonical
protected Dashboard $dashboard

Methods

setApplication(Application $app)

Setter method for the application

__construct(Repository $repository, CanonicalUrlResolver $canonical_resolver, Dashboard $dashboard)

PathUrlResolver constructor.

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

Resolve url's from any type of input.

handlePath(UrlInterface $url, string $path, array $args)

No description

basePath(UrlInterface $url, string $path, array $args)

No description

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct(Repository $repository, CanonicalUrlResolver $canonical_resolver, Dashboard $dashboard)

PathUrlResolver constructor.

Parameters

Repository $repository
CanonicalUrlResolver $canonical_resolver
Dashboard $dashboard

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

UrlResolverInterface::resolve

protected UrlInterface|Url handlePath(UrlInterface $url, string $path, array $args)

No description

Parameters

UrlInterface $url
string $path
array $args

Return Value

UrlInterface|Url

protected Path basePath(UrlInterface $url, string $path, array $args)

No description

Parameters

UrlInterface $url
string $path
array $args

Return Value

Path