Class Dispatcher
Dispatches requests.
Events:
ICanBoogie\HTTP\Dispatcher::dispatch:before
:ICanBoogie\HTTP\Dispatcher\BeforeDispatchEvent
.ICanBoogie\HTTP\Dispatcher::dispatch
:ICanBoogie\HTTP\Dispatcher\DispatchEvent
.ICanBoogie\HTTP\Dispatcher::rescue
:ICanBoogie\Exception\RescueEvent
.
- ICanBoogie\HTTP\Dispatcher implements ArrayAccess, IteratorAggregate, ICanBoogie\HTTP\IDispatcher
Methods summary
public
|
#
__construct( array $dispatchers = array() )
Initialiazes the |
public
|
#
__invoke(
Dispatches the request to retrieve a |
public
`true`
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
|
#
rescue(
Tries to get a |
Magic methods summary
Properties summary
protected
array[string]callable|string
|
$dispatchers |
#
The dispatchers called during the dispatching of the request. |
protected
array[string]mixed
|
$dispatchers_weight |
#
The weights of the dispatchers. |
protected
mixed
|
$dispatchers_order |