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 13239a0 commit 1a2f814Copy full SHA for 1a2f814
Firewall/LogoutListener.php
@@ -121,8 +121,7 @@ public function authenticate(RequestEvent $event)
121
$logoutEvent = new LogoutEvent($request, $this->tokenStorage->getToken());
122
$this->eventDispatcher->dispatch($logoutEvent);
123
124
- $response = $logoutEvent->getResponse();
125
- if (!$response instanceof Response) {
+ if (!$response = $logoutEvent->getResponse()) {
126
throw new \RuntimeException('No logout listener set the Response, make sure at least the DefaultLogoutListener is registered.');
127
}
128
0 commit comments