class UrlMatcher implements UrlMatcherInterface
UrlMatcher matches URL based on a set of routes.
Methods
|
__construct(RouteCollection $routes, RequestContext $context)
Constructor. |
||
|
setContext(RequestContext $context)
Sets the request context. |
||
| RequestContext |
getContext()
Gets the request context. |
|
| array |
match(string $pathinfo)
Tries to match a URL with a set of routes. |
Details
at line 41
public
__construct(RouteCollection $routes, RequestContext $context)
Constructor.
at line 54
public
setContext(RequestContext $context)
Sets the request context.
at line 64
public RequestContext
getContext()
Gets the request context.
at line 81
public array
match(string $pathinfo)
Tries to match a URL with a set of routes.