From 3f5ce4dc1e5936df4a79354a118f161f6e5a8864 Mon Sep 17 00:00:00 2001 From: Richard Perez Date: Fri, 6 Feb 2015 18:50:38 +0000 Subject: [PATCH] [#4231] Clarify that only the main command triggers events --- components/console/events.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/console/events.rst b/components/console/events.rst index ff7048138e8..25cd54e882a 100644 --- a/components/console/events.rst +++ b/components/console/events.rst @@ -20,6 +20,11 @@ the wheel, it uses the Symfony EventDispatcher component to do the work:: $application->setDispatcher($dispatcher); $application->run(); +.. caution:: + + Console events are only triggered by the main command being executed. + Commands called by the main command will not trigger any event. + The ``ConsoleEvents::COMMAND`` Event ------------------------------------