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

add(Router $router, bool $oneWay = false)

Adds a router.

void
prepend(Router $router, bool $oneWay = false)

Prepends a router.

void
modify(int $index, Router|null $router)

No description

addRoute(string $mask, array $metadata = [], bool $oneWay = false)

No description

withDomain(string $domain)

Returns an iterator over all routers.

withPath(string $path)

No description

RouteList|null
end()

No description

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.

Parameters

IRequest $httpRequest

Return Value

array|null

at line 57
protected IRequest|null prepareRequest(IRequest $httpRequest)

No description

Parameters

IRequest $httpRequest

Return Value

IRequest|null

at line 84
protected array|null completeParameters(array $params)

No description

Parameters

array $params

Return Value

array|null

at line 93
string|null constructUrl(array $params, UrlScript $refUrl)

Constructs absolute URL from array.

Parameters

array $params
UrlScript $refUrl

Return Value

string|null

at line 133
void warmupCache()

No description

Return Value

void

at line 189
RouteList add(Router $router, bool $oneWay = false)

Adds a router.

Parameters

Router $router
bool $oneWay

Return Value

RouteList

at line 200
void prepend(Router $router, bool $oneWay = false)

Prepends a router.

Parameters

Router $router
bool $oneWay

Return Value

void

at line 208
protected void modify(int $index, Router|null $router)

internal  
 

No description

Parameters

int $index
Router|null $router

Return Value

void

at line 222
RouteList addRoute(string $mask, array $metadata = [], bool $oneWay = false)

No description

Parameters

string $mask
array $metadata
bool $oneWay

Return Value

RouteList

at line 232
RouteList withDomain(string $domain)

Returns an iterator over all routers.

Parameters

string $domain

Return Value

RouteList

at line 243
RouteList withPath(string $path)

No description

Parameters

string $path

Return Value

RouteList

at line 254
RouteList|null end()

No description

Return Value

RouteList|null

at line 263
array getRouters()

No description

Return Value

array

at line 272
array getFlags()

No description

Return Value

array

at line 278
string|null getDomain()

No description

Return Value

string|null

at line 284
string|null getPath()

No description

Return Value

string|null