Skip to content

Commit

Permalink
Added @lsmith77 and @dbu use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Chardonnet committed Mar 1, 2014
1 parent a7b916e commit cdd534a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cookbook/console/console_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ the ``console.command`` tag:

* if you need your commands to be defined somewhere else than in the
``Command`` folder;
* if you need to register the command conditionally (depending on the
environment or presence of some dependencies);
* ou want to reuse the command with a different service or different
configuration, without having to extend the command - you could just
define a second service with the same class;
* if you need to access services or configuration parameters in the
``configure`` method.

Expand Down

0 comments on commit cdd534a

Please sign in to comment.