class RouteList extends RouteList implements Router, ArrayAccess

The router broker.

Constants

private PresenterKey

Methods

__construct(string|null $module = null)

No description

array|null
completeParameters(array $params)

Support for modules.

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

Constructs absolute URL from array.

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

No description

withModule(string $module)

Creates a sub-router scoped to the given module and attaches it to this list.

string|null
getModule()

No description

void
offsetSet(mixed $index, Router $router)

No description

Router
offsetGet(int $index)

No description

bool
offsetExists(int $index)

No description

void
offsetUnset(int $index)

No description

Details

at line 26
__construct(string|null $module = null)

No description

Parameters

string|null $module

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

Support for modules.

Parameters

array $params

Return Value

array|null

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

Constructs absolute URL from array.

Parameters

array $params
UrlScript $refUrl

Return Value

string|null

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

No description

Parameters

string $mask
array|string|Closure $metadata
bool $oneWay

Return Value

RouteList

at line 83
RouteList withModule(string $module)

Creates a sub-router scoped to the given module and attaches it to this list.

Parameters

string $module

Return Value

RouteList

at line 93
string|null getModule()

No description

Return Value

string|null

at line 103
void offsetSet(mixed $index, Router $router)

No description

Parameters

mixed $index
Router $router

Return Value

void

at line 124
Router offsetGet(int $index)

No description

Parameters

int $index

Return Value

Router

Exceptions

OutOfRangeException

at line 138
bool offsetExists(int $index)

No description

Parameters

int $index

Return Value

bool

at line 149
void offsetUnset(int $index)

No description

Parameters

int $index

Return Value

void

Exceptions

OutOfRangeException