Skip to content

Commit 3f5ce4d

Browse files
committed
[#4231] Clarify that only the main command triggers events
1 parent a3e2469 commit 3f5ce4d

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)