Class WeightedDispatcher
Used to define a dispatcher and its weight.
<?php $dispatcher['my'] = new WeightedDispatcher('callback', 'before:that_other_dispatcher');
- ICanBoogie\HTTP\WeightedDispatcher uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
protected
|
|
protected
integer|string
|
|
public
|
#
__construct(
Initializes the $dispatcher and $weight properties. |
Constants summary
string |
WEIGHT_TOP
|
#
'top'
|
string |
WEIGHT_BOTTOM
|
#
'bottom'
|
string |
WEIGHT_BEFORE_PREFIX
|
#
'before:'
|
string |
WEIGHT_AFTER_PREFIX
|
#
'after:'
|
integer |
WEIGHT_DEFAULT
|
#
0
|
Properties summary
Magic properties
public read-only
string| |
$dispatcher
|
public read-only
integer|string
|
$weight
|