RouterInterface
interface RouterInterface (View source)
Contract for a Web Router
Methods
array
route(RouteContext $routeContext)
Iterates through all configured routes and calls matches() on them.
UriInterface
resolve(ResolveContext $resolveContext)
Walks through all configured routes and calls their respective resolves-method.
Details
array
route(RouteContext $routeContext)
Iterates through all configured routes and calls matches() on them.
Returns the matchResults of the matching route.
UriInterface
resolve(ResolveContext $resolveContext)
Walks through all configured routes and calls their respective resolves-method.
When a matching route is found, the corresponding URI is returned.