Skip to content
Snippets Groups Projects
Commit 2d4af397 authored by Alex Pott's avatar Alex Pott
Browse files

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
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment