| 1 | <?php |
||
| 7 | class DispatcherChain implements Dispatcher |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Dispatcher[] |
||
| 11 | */ |
||
| 12 | private $dispatchers; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param $dispatchers |
||
| 16 | */ |
||
| 17 | 4 | public function __construct(Dispatcher ...$dispatchers) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @param Route $route |
||
| 24 | * @param callable $next |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | 4 | public function dispatch(Route $route, callable $next) |
|
| 37 | } |
||
| 38 |