RouteList
class RouteList implements Router
The router broker.
Properties
protected | $parent |
Methods
__construct()
No description
string|null
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 39
__construct()
No description
at line 47
array|null
match(IRequest $httpRequest)
Maps HTTP request to an array.
at line 80
string|null
constructUrl(array $params, UrlScript $refUrl)
Constructs absolute URL from array.
at line 120
void
warmupCache()
No description
at line 187
void
prepend(Router $router, int $flags = 0)
Prepends a router.
at line 195
protected void
modify(int $index, Router|null $router)
internal |
No description
at line 213
RouteList
addRoute(string $mask, array $metadata = [], int $flags = 0)
No description
at line 223
RouteList
withDomain(string $domain)
Returns an iterator over all routers.
at line 234
RouteList
withPath(string $path)
No description
at line 245
RouteList
end()
No description
at line 254
array
getRouters()
No description
at line 263
array
getFlags()
No description
at line 269
string|null
getDomain()
No description
at line 275
string|null
getPath()
No description
Traits
Strict class for better experience.