8000
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 9827fea commit 4706701Copy full SHA for 4706701
console.rst
@@ -27,6 +27,9 @@ For example, you may want a command to create a user::
27
28
class CreateUserCommand extends Command
29
{
30
+ // the name of the command (the part after "bin/console")
31
+ protected static $defaultName = 'app:create-user';
32
+
33
protected function configure()
34
35
// ...
@@ -49,9 +52,6 @@ method. Then you can optionally define a help message and the
49
52
50
53
51
54
$this
- // the name of the command (the part after "bin/console")
- ->setName('app:create-user')
-
55
// the short description shown while running "php bin/console list"
56
->setDescription('Creates a new user.')
57
0 commit comments