Skip to content

Commit cdd534a

Browse files
author
Loïc Chardonnet
committed
Added @lsmith77 and @dbu use cases
1 parent a7b916e commit cdd534a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cookbook/console/console_command.rst

+5
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ the ``console.command`` tag:
118118

119119
* if you need your commands to be defined somewhere else than in the
120120
``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;
121126
* if you need to access services or configuration parameters in the
122127
``configure`` method.
123128

0 commit comments

Comments
 (0)