diff --git a/src/Spryker/Yves/Locale/Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php b/src/Spryker/Yves/Locale/Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php index 5f23c70..6ee8780 100644 --- a/src/Spryker/Yves/Locale/Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php +++ b/src/Spryker/Yves/Locale/Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php @@ -12,7 +12,7 @@ use Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface; use Spryker\Yves\Kernel\AbstractPlugin; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpKernel\Event\GetResponseEvent; +use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\HttpKernel\KernelEvents; class LocaleEventDispatcherPlugin extends AbstractPlugin implements EventDispatcherPluginInterface @@ -35,7 +35,7 @@ public function extend(EventDispatcherInterface $eventDispatcher, ContainerInter { $eventDispatcher->addListener( KernelEvents::REQUEST, - function (GetResponseEvent $event) use ($container) { + function (RequestEvent $event) use ($container) { $request = $event->getRequest(); $request->setDefaultLocale($this->getLocaleFromContainer($container)); diff --git a/src/Spryker/Zed/Locale/Communication/Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php b/src/Spryker/Zed/Locale/Communication/Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php index edf7bfa..2505569 100644 --- a/src/Spryker/Zed/Locale/Communication/Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php +++ b/src/Spryker/Zed/Locale/Communication/Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php @@ -12,7 +12,7 @@ use Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface; use Spryker\Zed\Kernel\Communication\AbstractPlugin; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpKernel\Event\GetResponseEvent; +use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\HttpKernel\KernelEvents; /** @@ -41,7 +41,7 @@ public function extend(EventDispatcherInterface $eventDispatcher, ContainerInter { $eventDispatcher->addListener( KernelEvents::REQUEST, - function (GetResponseEvent $event) use ($container) { + function (RequestEvent $event) use ($container) { $request = $event->getRequest(); $request->setDefaultLocale($this->getLocale($container));