protected getCountriesFromInput ( Symfony\Component\Console\Input\InputInterface $input ) : array | ||
$input | Symfony\Component\Console\Input\InputInterface | Input |
return | array | Country array from input |
protected function getCountriesFromInput(InputInterface $input)
{
$countries = $input->getOption('country');
if (!is_array($countries) || empty($countries)) {
throw new InvalidArgumentException('You need to specify minimum a Country. eg: --country=FR');
}
return $countries;
}