protected function execute(InputInterface $input, OutputInterface $output) { /** @var ProgressHelper $progress */ $progress = $this->getHelperSet()->get('progress'); $generatePhonePrefixData = new GeneratePhonePrefixData(); $generatePhonePrefixData->start($input->getArgument('InputDirectory'), $input->getArgument('OutputDirectory'), $output, $progress); }
public static function setUpBeforeClass() { $temporaryMap = array(); $phonePrefixData = new GeneratePhonePrefixData(); // Languages for US. $phonePrefixData->addConfigurationMapping($temporaryMap, "1", "en"); $phonePrefixData->addConfigurationMapping($temporaryMap, "1", "en_US"); $phonePrefixData->addConfigurationMapping($temporaryMap, "1", "es"); // Languages for France. $phonePrefixData->addConfigurationMapping($temporaryMap, "33", "fr"); $phonePrefixData->addConfigurationMapping($temporaryMap, "33", "en"); // Languages for China. $phonePrefixData->addConfigurationMapping($temporaryMap, "86", "zh_Hans"); self::$available_data_files = $temporaryMap; }
protected function execute(InputInterface $input, OutputInterface $output) { $generatePhonePrefixData = new GeneratePhonePrefixData(); $generatePhonePrefixData->start($input->getArgument('InputDirectory'), $input->getArgument('OutputDirectory'), $output); }