Skip to content

Commit f8b62b8

Browse files
committed
minor #12500 Replace GetResponseEvent with RequestEvent (apiv-thomas)
This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes #12500). Discussion ---------- Replace GetResponseEvent with RequestEvent <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 72f8b5a Replace GetResponseEvent with RequestEvent
2 parents 134a7f0 + 72f8b5a commit f8b62b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/form_login_setup.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ whenever the user browses a page::
435435

436436
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
437437
use Symfony\Component\HttpFoundation\Session\SessionInterface;
438-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
438+
use Symfony\Component\HttpKernel\Event\RequestEvent;
439439
use Symfony\Component\HttpKernel\KernelEvents;
440440
use Symfony\Component\Security\Http\Util\TargetPathTrait;
441441

@@ -450,7 +450,7 @@ whenever the user browses a page::
450450
$this->session = $session;
451451
}
452452

453-
public function onKernelRequest(GetResponseEvent $event): void
453+
public function onKernelRequest(RequestEvent $event): void
454454
{
455455
$request = $event->getRequest();
456456
if (!$event->isMasterRequest() || $request->isXmlHttpRequest()) {

0 commit comments

Comments
 (0)