Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
26 | 2 | public function process(ServerRequestInterface $request, DelegateInterface $delegate): ResponseInterface |
|
27 | { |
||
28 | try { |
||
29 | 2 | return $delegate->process($request); |
|
30 | 1 | } catch (\Throwable $exception) { |
|
31 | 1 | $this->logger->alert($exception->getMessage(), [ |
|
32 | 1 | 'line' => $exception->getLine(), |
|
33 | 1 | 'file' => $exception->getFile(), |
|
34 | 1 | 'backtrace' => $exception->getTrace() |
|
35 | ]); |
||
36 | 1 | return $this->errorController->execute($request->withAttribute('error', $exception)); |
|
37 | } |
||
38 | } |
||
39 | } |
||
40 |