@@ 215-225 (lines=11) @@ | ||
212 | { |
|
213 | $questionHelper = $this->getQuestionHelper(); |
|
214 | ||
215 | if ($input->isInteractive()) { |
|
216 | $question = new ConfirmationQuestion( |
|
217 | $questionHelper->getQuestion('Do you confirm generation', 'yes', '?'), |
|
218 | true |
|
219 | ); |
|
220 | if (!$questionHelper->ask($input, $output, $question)) { |
|
221 | $output->writeln('<error>Command aborted</error>'); |
|
222 | ||
223 | return 1; |
|
224 | } |
|
225 | } |
|
226 | ||
227 | $style = new SymfonyStyle($input, $output); |
|
228 |
@@ 113-123 (lines=11) @@ | ||
110 | { |
|
111 | $questionHelper = $this->getQuestionHelper(); |
|
112 | ||
113 | if ($input->isInteractive()) { |
|
114 | $question = new ConfirmationQuestion($questionHelper->getQuestion('Do you confirm generation', 'yes', '?'), true); |
|
115 | if (!$questionHelper->ask($input, $output, $question)) { |
|
116 | $output->writeln('<error>Command aborted</error>'); |
|
117 | ||
118 | return 1; |
|
119 | } |
|
120 | } |
|
121 | ||
122 | $entity = Validators::validateEntityName($this->entityShortNotation); |
|
123 | $bundle = $this->bundle; |
|
124 | ||
125 | $format = Validators::validateFormat($input->getOption('format')); |
|
126 | $prefix = $this->getRoutePrefix($input, $entity); |