class ResolverManager implements ResolverManagerInterface (View source)

Properties

protected string[][] $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

getResolver(string $handle)

No description

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

See also

ResolverManagerInterface::addResolver

UrlResolverInterface|null getDefaultResolver()

No description

UrlResolverInterface|null getResolver(string $handle)

No description

Parameters

string $handle

Return Value

UrlResolverInterface|null

See also

ResolverManagerInterface::getResolver

UrlResolverInterface[] getResolvers()

No description

Return Value

UrlResolverInterface[]

URLInterface resolve(array $args)

Resolve a URI.

Parameters

array $args

this can be an array of any information

Return Value

URLInterface

See also

ResolverManagerInterface::resolve