Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | #[AsEventListener(event: KernelEvents::EXCEPTION, method: 'onKernelException', priority: 20)] |
||
16 | class ExceptionListener |
||
17 | { |
||
18 | private const ALLOWED_CONTENT_TYPE = 'application/json'; |
||
19 | |||
20 | 6 | public function __construct( |
|
21 | private readonly ExceptionFormatter $exceptionFormatter, |
||
22 | private readonly EventDispatcher $eventDispatcher, |
||
23 | ) { |
||
24 | } |
||
25 | |||
26 | 6 | public function onKernelException(ExceptionEvent $event): void |
|
36 | } |
||
37 | } |
||
39 |