/** * {@inheritdoc} */ public function getLocale() { $locales = $this->localeContext->getLocales(); if (($locale = reset($locales)) === false) { throw new LocaleNotFoundException(); } return $locale; }
/** * {@inheritdoc} */ public function getLocales() { return $this->localeContext->getLocales(); }