Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function handle(ExecutionException $exception, ExecutionContext $context) |
||
28 | { |
||
29 | $next = function () { |
||
30 | // NO-OP |
||
31 | }; |
||
32 | |||
33 | foreach (\array_reverse($this->middleware) as $mw) { |
||
34 | /** @var ErrorMiddlewareInterface $mw */ |
||
35 | $next = function (ExecutionException $exception, ExecutionContext $context) use ($mw, $next) { |
||
36 | return $mw->handle($exception, $context, $next); |
||
37 | }; |
||
38 | } |
||
39 | |||
40 | \call_user_func($next, $exception, $context); |
||
41 | } |
||
61 |