fa19659cedd45326ed558711f8147c3c6e2b5209
[yaffs-website] / vendor / drush / drush / src / Commands / generate / Generators / Drush / drush-command-file.twig
1 <?php
2
3 namespace Drupal\{{ machine_name }}\Commands;
4
5 {% if not source %}
6 use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
7 {% endif %}
8 use Drush\Commands\DrushCommands;
9
10 /**
11  * A Drush commandfile.
12  *
13  * In addition to this file, you need a drush.services.yml
14  * in root of your module, and a composer.json file that provides the name
15  * of the services file to use.
16  *
17  * See these files for an example of injecting Drupal services:
18  *   - http://cgit.drupalcode.org/devel/tree/src/Commands/DevelCommands.php
19  *   - http://cgit.drupalcode.org/devel/tree/drush.services.yml
20  */
21 class {{ class }} extends DrushCommands {
22
23 {% if source %}
24 {% include 'ported-methods.twig' %}
25 {% else %}
26 {% include 'default-methods.twig' %}
27 {% endif %}
28 }