X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fmodules%2Fd8%2Fwoot%2Fsrc%2FGenerators%2FExampleGenerator.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fmodules%2Fd8%2Fwoot%2Fsrc%2FGenerators%2FExampleGenerator.php;h=17a64735ddf118ac558e0549500fd6c94d65a974;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/tests/resources/modules/d8/woot/src/Generators/ExampleGenerator.php b/vendor/drush/drush/tests/resources/modules/d8/woot/src/Generators/ExampleGenerator.php new file mode 100644 index 000000000..17a64735d --- /dev/null +++ b/vendor/drush/drush/tests/resources/modules/d8/woot/src/Generators/ExampleGenerator.php @@ -0,0 +1,40 @@ +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'); + } +}