File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ correct locale however you want::
21
21
namespace App\EventSubscriber;
22
22
23
23
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
24
- use Symfony\Component\HttpKernel\Event\GetResponseEvent ;
<
7C45
/code>
24
+ use Symfony\Component\HttpKernel\Event\RequestEvent ;
25
25
use Symfony\Component\HttpKernel\KernelEvents;
26
26
27
27
class LocaleSubscriber implements EventSubscriberInterface
@@ -33,7 +33,7 @@ correct locale however you want::
33
33
$this->defaultLocale = $defaultLocale;
34
34
}
35
35
36
- public function onKernelRequest(GetResponseEvent $event)
36
+ public function onKernelRequest(RequestEvent $event)
37
37
{
38
38
$request = $event->getRequest();
39
39
if (!$request->hasPreviousSession()) {
You can’t perform that action at this time.
0 commit comments