Fix an error that PopulateCommand would always ignore errors

This commit is contained in:
Tim Nagel 2015-03-11 15:11:13 +11:00
commit 47785260a4
2 changed files with 8 additions and 7 deletions

View file

@ -70,16 +70,15 @@ class PopulateCommand extends ContainerAwareCommand
}
/**
* @see Symfony\Component\Console\Command\Command::execute()
* {@inheritDoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$index = $input->getOption('index');
$type = $input->getOption('type');
$reset = !$input->getOption('no-reset');
$options = $input->getOptions();
$options['ignore-errors'] = $input->hasOption('ignore-errors');
$index = $input->getOption('index');
$type = $input->getOption('type');
$reset = !$input->getOption('no-reset');
$options = $input->getOptions();
$options['ignore-errors'] = $input->getOption('ignore-errors');
if ($input->isInteractive() && $reset && $input->getOption('offset')) {
/** @var DialogHelper $dialog */