We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25442c commit 281730fCopy full SHA for 281730f
session/locale_sticky_session.rst
@@ -21,7 +21,7 @@ correct locale however you want::
21
namespace App\EventSubscriber;
22
23
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
24
- use Symfony\Component\HttpKernel\Event\GetResponseEvent;
+ use Symfony\Component\HttpKernel\Event\RequestEvent;
25
use Symfony\Component\HttpKernel\KernelEvents;
26
27
class LocaleSubscriber implements EventSubscriberInterface
@@ -33,7 +33,7 @@ correct locale however you want::
33
$this->defaultLocale = $defaultLocale;
34
}
35
36
- public function onKernelRequest(GetResponseEvent $event)
+ public function onKernelRequest(RequestEvent $event)
37
{
38
$request = $event->getRequest();
39
if (!$request->hasPreviousSession()) {
0 commit comments