You are here

public function TranslatorListener::onKernelRequest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/EventListener/TranslatorListener.php \Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest()

File

vendor/symfony/http-kernel/EventListener/TranslatorListener.php, line 38

Class

TranslatorListener
Synchronizes the locale between the request and the translator.

Namespace

Symfony\Component\HttpKernel\EventListener

Code

public function onKernelRequest(GetResponseEvent $event) {
  $this
    ->setLocale($event
    ->getRequest());
}