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)

Parameters

string $default_handle
UrlResolverInterface $default_resolver

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

Parameters

string $handle
UrlResolverInterface $resolver
int $priority the order in which we ask for a url, 1 is first, 1024 is last

See also

\Concrete\Core\Url\Resolver\Manager\ResolverManagerInterface::addResolver()

UrlResolverInterface|null getDefaultResolver()

Return Value

UrlResolverInterface|null

See also

\Concrete\Core\Url\Resolver\Manager\ResolverManagerInterface::getDefaultResolver()

UrlResolverInterface|null getResolver(string $handle)

Parameters

string $handle

Return Value

UrlResolverInterface|null

See also

\Concrete\Core\Url\Resolver\Manager\ResolverManagerInterface::getResolver()

UrlResolverInterface[] getResolvers()

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

\Concrete\Core\Url\Resolver\Manager\ResolverManagerInterface::resolve()