Skip to content

Commit 805db6b

Browse files
committed
Merge pull request #4 from jmolivas/master
Set default value on GeneratorControlleCommand Controller name
2 parents 08ee97e + f8f8a37 commit 805db6b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/Drupal/AppConsole/Command/GeneratorControllerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function($module) use ($modules){
9393

9494
// Module name
9595
$name = $this->getName();
96-
$name = $dialog->ask($output, $dialog->getQuestion('Enter the controller name','DefaultControler'));
96+
$name = $dialog->ask($output, $dialog->getQuestion('Enter the controller name', 'DefaultControler'), 'DefaultControler');
9797
$input->setOption('name', $name);
9898

9999
// Services

lib/Drupal/AppConsole/Command/GeneratorModuleCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ protected function interact(InputInterface $input, OutputInterface $output) {
114114
}
115115
$input->setOption('description', $description);
116116

117-
echo "Description : ", $description;
118-
119117
/**
120118
* Module package
121119
* @var

0 commit comments

Comments
 (0)