| @@ 124-131 (lines=8) @@ | ||
| 121 | { |
|
| 122 | $questionHelper = $this->getQuestionHelper(); |
|
| 123 | ||
| 124 | if ($input->isInteractive()) { |
|
| 125 | $question = new ConfirmationQuestion( |
|
| 126 | $questionHelper->getQuestion('Do you confirm generation', 'yes', '?'), |
|
| 127 | true |
|
| 128 | ); |
|
| 129 | if (!$questionHelper->ask($input, $output, $question)) { |
|
| 130 | $output->writeln('<error>Command aborted</error>'); |
|
| 131 | ||
| 132 | return 1; |
|
| 133 | } |
|
| 134 | } |
|
| @@ 68-75 (lines=8) @@ | ||
| 65 | { |
|
| 66 | $questionHelper = $this->getQuestionHelper(); |
|
| 67 | ||
| 68 | if ($input->isInteractive()) { |
|
| 69 | $question = new ConfirmationQuestion($questionHelper->getQuestion('Do you confirm generation', 'yes', '?'), true); |
|
| 70 | if (!$questionHelper->ask($input, $output, $question)) { |
|
| 71 | $output->writeln('<error>Command aborted</error>'); |
|
| 72 | ||
| 73 | return 1; |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | $style = new SymfonyStyle($input, $output); |
|
| 78 | ||