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
public
__construct( ICanBoogie\HTTP\Dispatcher
|string $dispatcher
, integer|string $weight
= self::WEIGHT_DEFAULT )
Initializes the $dispatcher and $weight properties.