Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / tests / resources / global-includes / Generators / FooGenerator.php
diff --git a/vendor/drush/drush/tests/resources/global-includes/Generators/FooGenerator.php b/vendor/drush/drush/tests/resources/global-includes/Generators/FooGenerator.php
new file mode 100644 (file)
index 0000000..8eadf0f
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drush\Generators;
+
+use DrupalCodeGenerator\Command\BaseGenerator;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+
+class FooGenerator extends BaseGenerator
+{
+    protected $name = 'foo-example';
+    protected $description = 'Generates a foo.';
+    protected $alias = 'foo';
+    protected $templatePath = __DIR__;
+
+    /**
+     * {@inheritDoc}
+     */
+    protected function interact(InputInterface $input, OutputInterface $output)
+    {
+        $this->addFile()
+            ->path('foo.php')
+            ->template('foo.twig');
+    }
+}