class CliRouter implements IRouter

The unidirectional router for CLI. (experimental)

Traits

Strict class for better experience.

Constants

PRESENTER_KEY

Methods

__construct(array $defaults = [])

No description

array|null
match(IRequest $httpRequest)

Maps command line arguments to an array.

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

This router is only unidirectional.

array
getDefaults()

Returns default values.

Details

at line 29
__construct(array $defaults = [])

Parameters

array $defaults

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

Maps command line arguments to an array.

Parameters

IRequest $httpRequest

Return Value

array|null

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

This router is only unidirectional.

Parameters

array $params
UrlScript $refUrl

Return Value

string|null

at line 103
array getDefaults()

Returns default values.

Return Value

array