From 72f8b5ab9dfc61fe2a0380b3fdda93bb1547e3d2 Mon Sep 17 00:00:00 2001 From: "Thomas from api.video" <53090992+apiv-thomas@users.noreply.github.com> Date: Thu, 17 Oct 2019 14:34:42 +0200 Subject: [PATCH] Replace GetResponseEvent with RequestEvent --- security/form_login_setup.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/form_login_setup.rst b/security/form_login_setup.rst index 7c5001f7dba..dafbc783dca 100644 --- a/security/form_login_setup.rst +++ b/security/form_login_setup.rst @@ -435,7 +435,7 @@ whenever the user browses a page:: use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\Session\SessionInterface; - use Symfony\Component\HttpKernel\Event\GetResponseEvent; + use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\Security\Http\Util\TargetPathTrait; @@ -450,7 +450,7 @@ whenever the user browses a page:: $this->session = $session; } - public function onKernelRequest(GetResponseEvent $event): void + public function onKernelRequest(RequestEvent $event): void { $request = $event->getRequest(); if (!$event->isMasterRequest() || $request->isXmlHttpRequest()) {