Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bugfix/te-5526-perf…
Browse files Browse the repository at this point in the history
…ormarnce-issues
  • Loading branch information
limeeugenia committed Oct 8, 2020
2 parents 9089805 + c7c2403 commit ced8180
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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));

Expand Down

0 comments on commit ced8180

Please sign in to comment.