class RouteList extends RouteList implements Router, ArrayAccess, Countable, IteratorAggregate

The router broker.

Constants

private PresenterKey

Methods

__construct(string|null $module = null)

No description

array|null
match(IRequest $httpRequest)

Maps HTTP request to an array.

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

Constructs absolute URL from array.

addRoute(string $mask, array|string|Closure $metadata = [], int $flags = 0)

No description

withModule(string $module)

No description

string|null
getModule()

No description

int
count() deprecated

No description

void
offsetSet(mixed $index, Router $router)

No description

mixed
offsetGet(int $index)

No description

bool
offsetExists(int $index)

No description

void
offsetUnset(int $index)

No description

getIterator() deprecated

No description

Details

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

No description

Parameters

string|null $module

at line 37
array|null match(IRequest $httpRequest)

Maps HTTP request to an array.

Parameters

IRequest $httpRequest

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 71
RouteList addRoute(string $mask, array|string|Closure $metadata = [], int $flags = 0)

No description

Parameters

string $mask
array|string|Closure $metadata

default values or metadata or callback for NetteModule\MicroPresenter

int $flags

Return Value

RouteList

at line 85
RouteList withModule(string $module)

No description

Parameters

string $module

Return Value

RouteList

at line 95
string|null getModule()

No description

Return Value

string|null

at line 102
int count() deprecated

deprecated

No description

Return Value

int

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

No description

Parameters

mixed $index
Router $router

Return Value

void

at line 128
mixed offsetGet(int $index)

No description

Parameters

int $index

Return Value

mixed

Exceptions

OutOfRangeException

at line 142
bool offsetExists(int $index)

No description

Parameters

int $index

Return Value

bool

at line 152
void offsetUnset(int $index)

No description

Parameters

int $index

Return Value

void

Exceptions

OutOfRangeException

at line 163
ArrayIterator getIterator() deprecated

deprecated

No description

Return Value

ArrayIterator