class CallableUrlResolver implements UrlResolverInterface (View source)

Properties

protected $resolver

Methods

__construct(callable $resolver)

No description

setResolver(callable $resolver)

No description

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

Resolve url's from any type of input.

Details

__construct(callable $resolver)

No description

Parameters

callable $resolver

A Callable that receives three arguments CallableUrlResolver $resolver, array $arguments, string|null $resolved

setResolver(callable $resolver)

No description

Parameters

callable $resolver

A Callable that receives three arguments CallableUrlResolver $resolver, array $arguments, string|null $resolved

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

Resolve url's from any type of input.

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

Parameters

array $arguments

A list of the arguments

URLInterface $resolved

Return Value

URLInterface