We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60e0138 commit 2efefeaCopy full SHA for 2efefea
console.rst
@@ -61,10 +61,18 @@ method. Then you can optionally define a help message and the
61
;
62
}
63
64
+Registering the Command
65
+-----------------------
66
+
67
+Symfony commands must be registered as services and :doc:`tagged </service_container/tags>`
68
+with the ``console.command`` tag. If the PHP class of your command extends from
69
+:class:`Symfony\\Component\\Console\\Command\\Command`, Symfony does this for
70
+you automatically.
71
72
Executing the Command
73
---------------------
74
-After configuring the command, you can execute it in the terminal:
75
+After configuring and registering the command, you can execute it in the terminal:
76
77
.. code-block:: terminal
78
0 commit comments