diff --git a/core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php index 4f5f7bf..4d622a7 100644 --- a/core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php @@ -19,7 +19,7 @@ /** * Authentication subscriber. * - * Trigger authentication and cleanup during the request. + * Trigger authentication during the request. */ class AuthenticationSubscriber implements EventSubscriberInterface { @@ -64,18 +64,6 @@ public function onKernelRequestAuthenticate(GetResponseEvent $event) { } /** - * Triggers authentication clean up on response. - * - * @see \Drupal\Core\Authentication\AuthenticationProviderInterface::cleanup() - */ - public function onRespond(FilterResponseEvent $event) { - if ($event->getRequestType() == HttpKernelInterface::MASTER_REQUEST) { - $request = $event->getRequest(); - $this->authenticationProvider->cleanup($request); - } - } - - /** * Pass exception handling to authentication manager. * * @param GetResponseForExceptionEvent $event @@ -98,7 +86,6 @@ public static function getSubscribedEvents() { // Priority must be higher than LanguageRequestSubscriber as LanguageManager // access current user in case language module enabled. $events[KernelEvents::REQUEST][] = array('onKernelRequestAuthenticate', 300); - $events[KernelEvents::RESPONSE][] = ['onRespond', 0]; $events[KernelEvents::EXCEPTION][] = ['onException', 75]; return $events; }