Skip to content

Commit

Permalink
Merge branch '4.3' into 4.4
Browse files Browse the repository at this point in the history
* 4.3:
  Replace GetResponseEvent with RequestEvent
  • Loading branch information
javiereguiluz committed Oct 18, 2019
2 parents e7e52ca + f8b62b8 commit f0ad1f7
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 f0ad1f7

Please sign in to comment.