Skip to content

Commit

Permalink
Merge pull request #270 from alcaeus/confirm-database-name-before-pur…
Browse files Browse the repository at this point in the history
…ging

Show the name of the database being purged when loading fixtures
  • Loading branch information
alcaeus committed Dec 11, 2018
2 parents 1eb8a2d + 9237e4f commit b2b8d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/LoadDataFixturesDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$em = $doctrine->getManager($input->getOption('em'));

if (! $input->getOption('append')) {
if (! $ui->confirm('Careful, database will be purged. Do you want to continue?', ! $input->isInteractive())) {
if (! $ui->confirm(sprintf('Careful, database "%s" will be purged. Do you want to continue?', $em->getConnection()->getDatabase()), ! $input->isInteractive())) {
return;
}
}
Expand Down

0 comments on commit b2b8d3f

Please sign in to comment.