@@ 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 |
@@ 112-122 (lines=11) @@ | ||
109 | { |
|
110 | $questionHelper = $this->getQuestionHelper(); |
|
111 | ||
112 | if ($input->isInteractive()) { |
|
113 | $question = new ConfirmationQuestion($questionHelper->getQuestion('Do you confirm generation', 'yes', '?'), true); |
|
114 | if (!$questionHelper->ask($input, $output, $question)) { |
|
115 | $output->writeln('<error>Command aborted</error>'); |
|
116 | ||
117 | return 1; |
|
118 | } |
|
119 | } |
|
120 | ||
121 | $entity = Validators::validateEntityName($this->entityShortNotation); |
|
122 | $bundle = $this->bundle; |
|
123 | ||
124 | $format = Validators::validateFormat($input->getOption('format')); |
|
125 | $prefix = $this->getRoutePrefix($input, $entity); |