Skip to content

Commit f225a7d

Browse files
committed
4565: Changed Question to ConfirmationQuestion
1 parent a48f88e commit f225a7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Command/UpdateCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Symfony\Component\Console\Input\ArrayInput;
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
13-
use Symfony\Component\Console\Question\Question;
13+
use Symfony\Component\Console\Question\ConfirmationQuestion;
1414
use Symfony\Component\Console\Style\SymfonyStyle;
1515

1616
#[AsCommand(
@@ -57,8 +57,7 @@ final protected function execute(InputInterface $input, OutputInterface $output)
5757

5858
// If no installed templates, we assume that this is a new installation and offer to install all templates.
5959
if ($isInteractive && 0 === count($installedTemplates)) {
60-
$question = new Question('No templates are installed. Install all '.count($allTemplates).'?', 'yes');
61-
$question->setAutocompleterValues(['yes', 'no']);
60+
$question = new ConfirmationQuestion('No templates are installed. Install all '.count($allTemplates).'?');
6261
$installAll = $io->askQuestion($question);
6362

6463
if ('yes' === $installAll) {

0 commit comments

Comments
 (0)