8000 minor #11942 Update locale Subscriber code (Deprecated) (lbraconnier2) · symfony/symfony-docs@29c07f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 29c07f4

Browse files
committed
minor #11942 Update locale Subscriber code (Deprecated) (lbraconnier2)
This PR was merged into the 4.3 branch. Discussion ---------- Update locale Subscriber code (Deprecated) <!-- 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 ------- 281730f Update locale Subscriber code (Deprecated)
2 parents f07e06b + 281730f commit 29c07f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

session/locale_sticky_session.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ correct locale however you want::
2121
namespace App\EventSubscriber;
2222

2323
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
24-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
24+
use Symfony\Component\HttpKernel\Event\RequestEvent;
2525
use Symfony\Component\HttpKernel\KernelEvents;
2626

2727
class LocaleSubscriber implements EventSubscriberInterface
@@ -33,7 +33,7 @@ correct locale however you want::
3333
$this->defaultLocale = $defaultLocale;
3434
}
3535

36-
public function onKernelRequest(GetResponseEvent $event)
36+
public function onKernelRequest(RequestEvent $event)
3737
{
3838
$request = $event->getRequest();
3939
if (!$request->hasPreviousSession()) {

0 commit comments

Comments
 (0)
0