Skip to content

Commit

Permalink
Update LocaleListener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
janwebdev authored Mar 19, 2022
1 parent 900a5a1 commit ab54967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Listener/LocaleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Janwebdev\SFI18nBundle\Locale\LocaleInterface;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
*
Expand All @@ -26,7 +26,7 @@ public static function getSubscribedEvents()
);
}

public function setLocale(GetResponseEvent $event)
public function setLocale(RequestEvent $event)
{
$this->locale->setLocale($event->getRequest()->getLocale());
}
Expand Down

0 comments on commit ab54967

Please sign in to comment.