diff --git a/lib/Drupal/AppConsole/Command/GeneratorModuleCommand.php b/lib/Drupal/AppConsole/Command/GeneratorModuleCommand.php index 629e37fab..0ec70e137 100644 --- a/lib/Drupal/AppConsole/Command/GeneratorModuleCommand.php +++ b/lib/Drupal/AppConsole/Command/GeneratorModuleCommand.php @@ -91,10 +91,10 @@ protected function interact(InputInterface $input, OutputInterface $output) { $output, $dialog->getQuestion('Module name', $input->getOption('module')), - array( - 'Drupal\AppConsole\Command\Validators', + [ + $this, 'validateModuleName' - ), + ], false, $input->getOption('module') );