RouteList
class RouteList implements Router
The router broker.
Properties
protected | $parent |
Methods
__construct()
No description
array|null
match(IRequest $httpRequest)
Maps HTTP request to an array.
IRequest|null
prepareRequest(IRequest $httpRequest)
No description
array|null
completeParameters(array $params)
No description
string|null
constructUrl(array $params, UrlScript $refUrl)
Constructs absolute URL from array.
void
warmupCache()
No description
void
modify(int $index, Router|null $router)
No description
withDomain(string $domain)
Returns an iterator over all routers.
array
getRouters()
No description
array
getFlags()
No description
string|null
getDomain()
No description
string|null
getPath()
No description
Details
at line 33
__construct()
No description
at line 41
final array|null
match(IRequest $httpRequest)
Maps HTTP request to an array.
at line 57
protected IRequest|null
prepareRequest(IRequest $httpRequest)
No description
at line 84
protected array|null
completeParameters(array $params)
No description
at line 93
string|null
constructUrl(array $params, UrlScript $refUrl)
Constructs absolute URL from array.
at line 133
void
warmupCache()
No description
at line 200
void
prepend(Router $router, bool $oneWay = false)
Prepends a router.
at line 208
protected void
modify(int $index, Router|null $router)
internal |
No description
at line 222
RouteList
addRoute(string $mask, array $metadata = [], bool $oneWay = false)
No description
at line 232
RouteList
withDomain(string $domain)
Returns an iterator over all routers.
at line 243
RouteList
withPath(string $path)
No description
at line 254
RouteList|null
end()
No description
at line 263
array
getRouters()
No description
at line 272
array
getFlags()
No description
at line 278
string|null
getDomain()
No description
at line 284
string|null
getPath()
No description