public function setLocale($locale)
{
$this->locale = $locale;
}
/** * {@inheritdoc} */ public function execute(InputInterface $input, OutputInterface $output) { if (!$input->getOption('lang')) { return; } $this->translator->setLocale($input->getOption('lang')); }