Skip to content

Commit

Permalink
Merge pull request #263 from alcaeus/fix-confirmation-prompt
Browse files Browse the repository at this point in the history
Fix confirmation prompt
  • Loading branch information
alcaeus authored Nov 25, 2018
2 parents 2bca1d4 + b4a366b commit 0b0fba5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Command/LoadDataFixturesDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$em = $doctrine->getManager($input->getOption('em'));

if (!$input->getOption('append')) {
$ui->ask('Careful, database will be purged. Do you want to continue y/N ?', false);
if (!$ui->confirm('Careful, database will be purged. Do you want to continue?', false)) {
return;
}
}

if ($input->getOption('shard')) {
Expand Down

1 comment on commit 0b0fba5

@garak
Copy link
Contributor

@garak garak commented on 0b0fba5 Nov 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a BC break. See issue #266

Please sign in to comment.