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