Permalink
Browse files

feature #4966 [#4231] Clarify that only the main command triggers eve…

…nts (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
  • Loading branch information...
weaverryan committed Feb 24, 2015
2 parents 9cce63c + 3f5ce4d commit a25da10d010fbd547239099b0fe1accd0fc9f6ca
Showing with 5 additions and 0 deletions.
  1. +5 −0 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
------------------------------------

0 comments on commit a25da10

Please sign in to comment.