moduleHandler = $moduleHandler; } /** * {@inheritdoc} */ protected function interact(InputInterface $input, OutputInterface $output) { $questions = Utils::defaultQuestions(); $vars = &$this->collectVars($input, $output, $questions); $vars['class'] = Utils::camelize('Example_' . $vars['machine_name'] . '_Commands'); $this->addFile() ->path('src/Commands/{class}.php') ->template('example-generator.twig'); } }