Commit 2d4af397 authored by alexpott's avatar alexpott

Issue #2839396 by andypost, tstoeckler: Clean-up unused variable and useless...

Issue #2839396 by andypost, tstoeckler: Clean-up unused variable and useless method call from LanguageRequestSubscriber
parent 4bf6ae4e
......@@ -64,16 +64,14 @@ public function __construct(ConfigurableLanguageManagerInterface $language_manag
}
/**
* Sets the request on the language manager.
* Sets the default language and initializes configuration overrides.
*
* @param \Symfony\Component\HttpKernel\Event\GetResponseEvent $event
* The Event to process.
*/
public function onKernelRequestLanguage(GetResponseEvent $event) {
if ($event->getRequestType() == HttpKernelInterface::MASTER_REQUEST) {
$request = $event->getRequest();
$this->negotiator->setCurrentUser($this->currentUser);
$this->negotiator->reset();
if ($this->languageManager instanceof ConfigurableLanguageManagerInterface) {
$this->languageManager->setNegotiator($this->negotiator);
$this->languageManager->setConfigOverrideLanguage($this->languageManager->getCurrentLanguage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment