WellCommerce\Bundle\LocaleBundle\Command\AddLocaleCommand::chooseSourceLocale PHP Метод

chooseSourceLocale() приватный Метод

private chooseSourceLocale ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : string
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Результат string
    private function chooseSourceLocale(InputInterface $input, OutputInterface $output) : string
    {
        $defaultLocale = current($this->installedLocales);
        $question = new ChoiceQuestion(sprintf('Please select source locale from which new entities will be copied (defaults to "%s"):', $defaultLocale), $this->installedLocales, $defaultLocale);
        $sourceLocale = $this->getHelper('question')->ask($input, $output, $question);
        return $sourceLocale;
    }