|
@@ 101-108 (lines=8) @@
|
| 98 |
|
{ |
| 99 |
|
$questionHelper = $this->getQuestionHelper(); |
| 100 |
|
|
| 101 |
|
if ($input->isInteractive()) { |
| 102 |
|
$question = new ConfirmationQuestion($questionHelper->getQuestion('Do you confirm generation', 'yes', '?'), true); |
| 103 |
|
if (!$questionHelper->ask($input, $output, $question)) { |
| 104 |
|
$output->writeln('<error>Command aborted</error>'); |
| 105 |
|
|
| 106 |
|
return 1; |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
$entity = Validators::validateEntityName($input->getOption('entity')); |
| 111 |
|
list($bundle, $entity) = $this->parseShortcutNotation($entity); |
|
@@ 283-286 (lines=4) @@
|
| 280 |
|
protected function updateRouting(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output, BundleInterface $bundle, $format, $entity, $prefix) |
| 281 |
|
{ |
| 282 |
|
$auto = true; |
| 283 |
|
if ($input->isInteractive()) { |
| 284 |
|
$question = new ConfirmationQuestion($questionHelper->getQuestion('Confirm automatic update of the Routing', 'yes', '?'), true); |
| 285 |
|
$auto = $questionHelper->ask($input, $output, $question); |
| 286 |
|
} |
| 287 |
|
|
| 288 |
|
$output->write('Importing the CRUD routes: '); |
| 289 |
|
$this->getContainer()->get('filesystem')->mkdir($bundle->getPath().'/Resources/config/'); |