/** * @return string */ protected function getDefaultLocale() { return $this->domainConfiguration->getDefaultLocale(); }
public function getCurrentLocale() { $request = $this->requestStack->getCurrentRequest(); return $request ? $request->getLocale() : $this->domainConfiguration->getDefaultLocale(); }