From 5e2cd13a39aab074b38fcace54a1df7826ed8c1e Mon Sep 17 00:00:00 2001 From: Alexandre Dias Date: Fri, 26 Jun 2020 10:49:27 +0100 Subject: [PATCH] remove patch Drupal 8 --- 19052020_drupal_8_onException.patch | 38 ----------------------------- 1 file changed, 38 deletions(-) delete mode 100644 19052020_drupal_8_onException.patch diff --git a/19052020_drupal_8_onException.patch b/19052020_drupal_8_onException.patch deleted file mode 100644 index f3362b8..0000000 --- a/19052020_drupal_8_onException.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff --git a/src/EventSubscriber/SentryEventSubscriber.php b/src/EventSubscriber/SentryEventSubscriber.php -index 2c1b7f6..7a3d79b 100644 ---- a/src/EventSubscriber/SentryEventSubscriber.php -+++ b/src/EventSubscriber/SentryEventSubscriber.php -@@ -8,6 +8,7 @@ use Symfony\Component\DependencyInjection\ContainerAwareInterface; - use Symfony\Component\DependencyInjection\ContainerAwareTrait; - use Symfony\Component\EventDispatcher\EventSubscriberInterface; - use Symfony\Component\HttpKernel\Event\ExceptionEvent; -+use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; - use Symfony\Component\HttpKernel\KernelEvents; - - /** -@@ -50,10 +51,10 @@ class SentryEventSubscriber implements EventSubscriberInterface, ContainerAwareI - /** - * Log all exceptions. - * -- * @param \Symfony\Component\HttpKernel\Event\ExceptionEvent $event -+ * @param \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event - * The event to process. - */ -- public function onException(ExceptionEvent $event) { -+ public function onException(GetResponseForExceptionEvent $event) { - $this->sentry->log($event); - } - -diff --git a/src/Service/SentryService.php b/src/Service/SentryService.php -index dcb230f..d669cf2 100644 ---- a/src/Service/SentryService.php -+++ b/src/Service/SentryService.php -@@ -118,7 +118,7 @@ class SentryService implements SentryInterface { - * Catch error. - */ - public function log($event) { -- $exception = $event->getThrowable(); -+ $exception = $event->getException(); - $error = Error::decodeException($exception); - if (!$this->client && !array_key_exists($error['severity_level'], $this->loglevels)) { - return;