From 1ba81c469c4ec2b1246cc93e9327c0f15b95e156 Mon Sep 17 00:00:00 2001 From: Simon Bouland Date: Wed, 2 Jan 2019 11:44:29 +0100 Subject: [PATCH 1/2] Releasing scope constraint Issue #175 --- src/EventListener/ExceptionListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventListener/ExceptionListener.php b/src/EventListener/ExceptionListener.php index 208afdbc..8d3213ba 100644 --- a/src/EventListener/ExceptionListener.php +++ b/src/EventListener/ExceptionListener.php @@ -147,7 +147,7 @@ public function onConsoleException(ConsoleExceptionEvent $event): void /** * @param ConsoleExceptionEvent|ConsoleErrorEvent $event */ - private function handleConsoleError(ConsoleEvent $event): void + protected function handleConsoleError(ConsoleEvent $event): void { $command = $event->getCommand(); switch (true) { @@ -190,7 +190,7 @@ protected function shouldExceptionCaptureBeSkipped(\Throwable $exception): bool /** * @param UserInterface | object | string $user */ - private function setUserValue($user) + protected function setUserValue($user) { $data = []; From 8543e499e4e0696d9e3a83a129010fd42ce4b2f7 Mon Sep 17 00:00:00 2001 From: Simon Bouland Date: Wed, 2 Jan 2019 15:48:34 +0100 Subject: [PATCH 2/2] Exception listerner with protected attributes Issue #175 --- src/EventListener/ExceptionListener.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EventListener/ExceptionListener.php b/src/EventListener/ExceptionListener.php index 8d3213ba..aaf69586 100644 --- a/src/EventListener/ExceptionListener.php +++ b/src/EventListener/ExceptionListener.php @@ -26,10 +26,10 @@ class ExceptionListener implements SentryExceptionListenerInterface { /** @var TokenStorageInterface|null */ - private $tokenStorage; + protected $tokenStorage; /** @var AuthorizationCheckerInterface|null */ - private $authorizationChecker; + protected $authorizationChecker; /** @var \Raven_Client */ protected $client; @@ -38,7 +38,7 @@ class ExceptionListener implements SentryExceptionListenerInterface protected $eventDispatcher; /** @var RequestStack */ - private $requestStack; + protected $requestStack; /** @var string[] */ protected $skipCapture;