$this->currentUser =
$current_user;
} /**
* Initializes the language manager at the beginning of the request.
*
* @param \Symfony\Component\HttpKernel\Event\RequestEvent $event
* The Event to process.
*/
public function onKernelRequestLanguage(RequestEvent
$event) { if ($event->
isMainRequest()) { $this->
setLanguageOverrides();
} } /**
* Initializes config overrides whenever the service container is rebuilt.
*/
public function onContainerInitializeSubrequestFinished() { $this->
setLanguageOverrides();
} /**
* Sets the language for config overrides on the language manager.
*/