class ResolverManager implements ResolverManagerInterface (View source)

Properties

protected $priorityTree
protected UrlResolverInterface $resolvers
protected string $default

Methods

__construct(string $default_handle = '', UrlResolverInterface $default_resolver = null)

No description

addResolver(string $handle, UrlResolverInterface $resolver, int $priority = 512)

No description

URLResolverInterface|null
getDefaultResolver()

No description

URLResolverInterface|null
getResolver(string $handle)

No description

array
getResolvers()

No description

URLInterface
resolve(array $args)

Resolve a URI.

Details

__construct(string $default_handle = '', UrlResolverInterface $default_resolver = null)

No description

Parameters

string $default_handle
UrlResolverInterface $default_resolver

addResolver(string $handle, UrlResolverInterface $resolver, int $priority = 512)

No description

Parameters

string $handle
UrlResolverInterface $resolver
int $priority

The order in which we ask for a url, 1 is first, 1024 is last.

URLResolverInterface|null getDefaultResolver()

No description

Return Value

URLResolverInterface|null

URLResolverInterface|null getResolver(string $handle)

No description

Parameters

string $handle

Return Value

URLResolverInterface|null

array getResolvers()

No description

Return Value

array

URLInterface resolve(array $args)

Resolve a URI.

Parameters

array $args

This can be an array of any information.

Return Value

URLInterface