29 $this->resolver = $resolver;
38 return $this->resolver->getDefaultLocalePath();
46 return $this->resolver->setDefaultLocale($locale);
54 return $this->resolver->getDefaultLocale();
62 return $this->resolver->setLocale($locale);
72 $locale = $this->resolver->getLocale();
73 $allowedLocales = $this->config->getValue(
'supported_locales');
75 return strpos($allowedLocales, $locale) !==
false ? $locale :
'en_US';
83 return $this->resolver->emulate($scopeId);
91 return $this->resolver->revert();
setDefaultLocale($locale)
__construct(ResolverInterface $resolver, Config $config)