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