Skip to content

Commit a25da10

Browse files
committed
feature #4966 [#4231] Clarify that only the main command triggers events (riperez)
This PR was merged into the 2.3 branch. Discussion ---------- [#4231] Clarify that only the main command triggers events | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #4231 Commits ------- 3f5ce4d [#4231] Clarify that only the main command triggers events
2 parents 9cce63c + 3f5ce4d commit a25da10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/console/events.rst

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ the wheel, it uses the Symfony EventDispatcher component to do the work::
2020
$application->setDispatcher($dispatcher);
2121
$application->run();
2222

23+
.. caution::
24+
25+
Console events are only triggered by the main command being executed.
26+
Commands called by the main command will not trigger any event.
27+
2328
The ``ConsoleEvents::COMMAND`` Event
2429
------------------------------------
2530

0 commit comments

Comments
 (0)