Skip to content

Commit

Permalink
minor symfony#12500 Replace GetResponseEvent with RequestEvent (apiv-…
Browse files Browse the repository at this point in the history
…thomas)

This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes symfony#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
  • Loading branch information
javiereguiluz committed Oct 18, 2019
2 parents 134a7f0 + 72f8b5a commit f8b62b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/form_login_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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()) {
Expand Down

0 comments on commit f8b62b8

Please sign in to comment.