Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
25 | class ExceptionListener implements EventSubscriberInterface |
||
26 | { |
||
27 | private $interactor; |
||
28 | |||
29 | public function __construct(NewRelicInteractorInterface $interactor) |
||
30 | { |
||
31 | $this->interactor = $interactor; |
||
32 | } |
||
33 | |||
34 | public static function getSubscribedEvents(): array |
||
35 | { |
||
36 | return [ |
||
37 | KernelEvents::EXCEPTION => ['onKernelException', 0], |
||
38 | ]; |
||
39 | } |
||
40 | |||
41 | public function onKernelException(GetResponseForExceptionEvent $event): void |
||
46 | } |
||
47 | } |
||
48 | } |
||
49 |