| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 18 | final class RegisterExceptionHandler |
||
| 19 | { |
||
| 20 | /** @var bool */ |
||
| 21 | private $debugEnabled; |
||
| 22 | |||
| 23 | /** @var string */ |
||
| 24 | private $editor; |
||
| 25 | |||
| 26 | public function __construct(bool $debugEnabled, string $editor) |
||
| 30 | } |
||
| 31 | |||
| 32 | public function __invoke(ServerRequestInterface $request, Response $response, callable $next) |
||
| 33 | { |
||
| 34 | $this->registerExceptionHandler(); |
||
| 35 | |||
| 36 | $response = $next($request, $response); |
||
| 37 | |||
| 38 | return $response; |
||
| 39 | } |
||
| 40 | |||
| 41 | private function registerExceptionHandler(): void |
||
| 54 | } |
||
| 55 | } |
||
| 56 |