/** * @param GetResponseForExceptionEvent $event */ public function onKernelException(GetResponseForExceptionEvent $event) { $exception = $event->getException(); if (!$exception instanceof HttpExceptionInterface) { $this->interactor->noticeException($exception); } }
/** * {@inheritdoc} */ public function noticeException(\Exception $e) { $this->log('Sending exception to New Relic'); $this->interactor->noticeException($e); }
/** * @param ConsoleExceptionEvent $event */ public function onConsoleException(ConsoleExceptionEvent $event) { $exception = $event->getException(); $this->interactor->noticeException($exception); }