You are here

public function TranslatorListener::__construct 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::__construct()

File

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

Class

TranslatorListener
Synchronizes the locale between the request and the translator.

Namespace

Symfony\Component\HttpKernel\EventListener

Code

public function __construct(TranslatorInterface $translator, RequestStack $requestStack) {
  $this->translator = $translator;
  $this->requestStack = $requestStack;
}