| @@ 220-230 (lines=11) @@ | ||
| 217 |     { | |
| 218 | $questionHelper = $this->getQuestionHelper(); | |
| 219 | ||
| 220 |         if ($input->isInteractive()) { | |
| 221 | $question = new ConfirmationQuestion( | |
| 222 |                 $questionHelper->getQuestion('Do you confirm generation', 'yes', '?'), | |
| 223 | true | |
| 224 | ); | |
| 225 |             if (!$questionHelper->ask($input, $output, $question)) { | |
| 226 |                 $output->writeln('<error>Command aborted</error>'); | |
| 227 | ||
| 228 | return 1; | |
| 229 | } | |
| 230 | } | |
| 231 | ||
| 232 | $style = new SymfonyStyle($input, $output); | |
| 233 | ||
| @@ 107-117 (lines=11) @@ | ||
| 104 |     { | |
| 105 | $questionHelper = $this->getQuestionHelper(); | |
| 106 | ||
| 107 |         if ($input->isInteractive()) { | |
| 108 | $question = new ConfirmationQuestion( | |
| 109 |                 $questionHelper->getQuestion('Do you confirm generation', 'yes', '?'), | |
| 110 | true | |
| 111 | ); | |
| 112 |             if (!$questionHelper->ask($input, $output, $question)) { | |
| 113 |                 $output->writeln('<error>Command aborted</error>'); | |
| 114 | ||
| 115 | return 1; | |
| 116 | } | |
| 117 | } | |
| 118 | ||
| 119 | $entity = Validators::validateEntityName($this->entityShortNotation); | |
| 120 | $bundle = $this->bundle; | |