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 540ba26 commit f545be9Copy full SHA for f545be9
src/Symfony/Component/Security/Http/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