You are here

public function DefaultTranslator::setLocale in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/DefaultTranslator.php \Symfony\Component\Validator\DefaultTranslator::setLocale()

Not supported.

Parameters

string $locale The locale:

Throws

BadMethodCallException

Overrides TranslatorInterface::setLocale

File

vendor/symfony/validator/DefaultTranslator.php, line 157

Class

DefaultTranslator
Simple translator implementation that simply replaces the parameters in the message IDs.

Namespace

Symfony\Component\Validator

Code

public function setLocale($locale) {
  throw new BadMethodCallException('Unsupported method.');
}