We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5068851 commit 812007bCopy full SHA for 812007b
src/Sentry/SentryBundle/EventListener/ExceptionListener.php
@@ -91,10 +91,8 @@ public function onKernelRequest(GetResponseEvent $event)
91
if (null !== $token && $this->authorizationChecker->isGranted(AuthenticatedVoter::IS_AUTHENTICATED_REMEMBERED)) {
92
$this->setUserValue($token->getUser());
93
94
- if (null !== $this->dispatcher) {
95
- $contextEvent = new SentryUserContextEvent($token);
96
- $this->dispatcher->dispatch(SentrySymfonyEvents::SET_USER_CONTEXT, $contextEvent);
97
- }
+ $contextEvent = new SentryUserContextEvent($token);
+ $this->dispatcher->dispatch(SentrySymfonyEvents::SET_USER_CONTEXT, $contextEvent);
98
}
99
100
0 commit comments