Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f8b62b8

Browse filesBrowse 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
Copy full SHA for f8b62b8

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎security/form_login_setup.rst

Copy file name to clipboardExpand all lines: security/form_login_setup.rst
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.