From ecc40766a6bda20466b5f0d89d83767f1c3be8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Klatt?= Date: Wed, 5 Aug 2020 10:07:17 +0000 Subject: [PATCH] TE-7001 Merged things together. --- .../Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php | 4 ++-- .../Plugin/EventDispatcher/LocaleEventDispatcherPlugin.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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));