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