We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7b916e commit cdd534aCopy full SHA for cdd534a
cookbook/console/console_command.rst
@@ -118,6 +118,11 @@ the ``console.command`` tag:
118
119
* if you need your commands to be defined somewhere else than in the
120
``Command`` folder;
121
+ * if you need to register the command conditionally (depending on the
122
+ environment or presence of some dependencies);
123
+ * ou want to reuse the command with a different service or different
124
+ configuration, without having to extend the command - you could just
125
+ define a second service with the same class;
126
* if you need to access services or configuration parameters in the
127
``configure`` method.
128
0 commit comments