Router
interface Router
Bidirectional router converting between HTTP requests and parameter arrays.
Constants
| ONE_WAY |
|
Methods
array|null
match(IRequest $httpRequest)
Matches an HTTP request and returns its parameters, or null if the route does not match.
string|null
constructUrl(array $params, UrlScript $refUrl)
Constructs an absolute URL from parameters, or null if the route cannot generate it.
Details
at line 25
array|null
match(IRequest $httpRequest)
Matches an HTTP request and returns its parameters, or null if the route does not match.
at line 31
string|null
constructUrl(array $params, UrlScript $refUrl)
Constructs an absolute URL from parameters, or null if the route cannot generate it.