We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177c84a commit f16b6daCopy full SHA for f16b6da
console/commands_as_services.rst
@@ -128,6 +128,12 @@ Or set the ``command`` attribute on the ``console.command`` tag in your service
128
->addTag('console.command', array('command' => 'app:sunshine'))
129
;
130
131
+.. note::
132
+
133
+ If the command defines aliases (using the
134
+ :method:`Symfony\\Component\\Console\\Command\\Command::getAliases` method)
135
+ you must add one ``console.command`` tag per alias.
136
137
That's it. One way or another, the ``SunshineCommand`` will be instantiated
138
only when the ``app:sunshine`` command is actually called.
139
0 commit comments