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 985abbb commit a823669Copy full SHA for a823669
console.rst
@@ -184,6 +184,10 @@ You can optionally define a description, help message and the
184
``setDescription()`` method instead of the attribute to define the command
185
description.
186
187
+ If you want to configure the command description and the command name, use the
188
+ ``AsCommand`` attribute to it, as follows:
189
+ ``#[AsCommand(name: 'app:create-user', description:'Creates users')]``.
190
+
191
The ``configure()`` method is called automatically at the end of the command
192
constructor. If your command defines its own constructor, set the properties
193
first and then call to the parent constructor, to make those properties
0 commit comments