| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class ConvertExceptionToJSONResponseSubscriber implements EventSubscriberInterface |
||
| 16 | { |
||
| 17 | private ExceptionConverter $converter; |
||
| 18 | |||
| 19 | 2 | public static function getSubscribedEvents(): array |
|
| 23 | ]; |
||
| 24 | } |
||
| 25 | |||
| 26 | 2 | public function __construct(ExceptionConverter $converter) |
|
| 29 | 2 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @Callback |
||
| 33 | * |
||
| 34 | * @param ExceptionEvent $event |
||
| 35 | */ |
||
| 36 | 2 | public function onKernelException(ExceptionEvent $event): void |
|
| 44 |