File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
templates/module/src/Command Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ use Symfony\Component\Console\Input\InputInterface;
13
13
use Symfony\Component\Console\Output\OutputInterface;
14
14
use Symfony\Component\Console\Command\Command;
15
15
{% if container_aware %}
16
- use Drupal\Console\Core\Command\Shared\ContainerAwareCommandTrait ;
16
+ use Drupal\Console\Core\Command\ContainerAwareCommand ;
17
17
{% else %}
18
- use Drupal\Console\Core\Command\Shared\CommandTrait ;
18
+ use Drupal\Console\Core\Command\Command ;
19
19
{% endif %}
20
20
use Drupal\Console\Core\Style\DrupalStyle;
21
21
use Drupal\Console\Annotations\DrupalCommand;
@@ -30,7 +30,7 @@ use Drupal\Console\Annotations\DrupalCommand;
30
30
* extensionType="{{ extensionType }}"
31
31
* )
32
32
*/
33
- class {{ class_name }} extends Command {% endblock %}
33
+ class {{ class_name }} extends {% if container_aware %}ContainerAwareCommand{% else %} Command{% endif %} {% endblock %}
34
34
{% block class_construct %}
35
35
{% if services is not empty %}
36
36
@@ -44,15 +44,6 @@ class {{ class_name }} extends Command {% endblock %}
44
44
{% endif %}
45
45
{% endblock %}
46
46
47
- {% block use_trait %}
48
- {% if container_aware %}
49
- use ContainerAwareCommandTrait;
50
- {% else %}
51
- use CommandTrait;
52
- {% endif %}
53
-
54
- {% endblock %}
55
-
56
47
{% block class_methods %}
57
48
/**
58
49
* {@inheritdoc}
You can’t perform that action at this time.
0 commit comments