interface UrlMatcherInterface implementsRequestContextAwareInterface

UrlMatcherInterface is the interface that all URL matcher classes must implement.

Methods

void
setContext(RequestContext$context)

Sets the request context.

RequestContext
getContext()

Gets the request context.

array
match(string$pathinfo)

Tries to match a URL path with a set of routes.

Details

void setContext(RequestContext$context)

Sets the request context.

Parameters

RequestContext $context

Return Value

void

RequestContext getContext()

Gets the request context.

Return Value

RequestContext

array match(string$pathinfo)

Tries to match a URL path with a set of routes.

If the matcher cannot find information, it must throw one of the exceptions documented below.

Parameters

string $pathinfo The path info to be parsed (raw format, i.e. not urldecoded)

Return Value

array

Exceptions

NoConfigurationException If no routing configuration could be found
ResourceNotFoundException If the resource could not be found
MethodNotAllowedException If the resource was found but the request method is not allowed