Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcdd534a

Browse files
author
Loïc Chardonnet
committed
Added@lsmith77 and@dbu use cases
1 parenta7b916e commitcdd534a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎cookbook/console/console_command.rst

Lines changed: 5 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp