Skip to content

Commit

Permalink
feature #4966 [#4231] Clarify that only the main command triggers eve…
Browse files Browse the repository at this point in the history
…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 a25da10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/console/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------------------------------

Expand Down

0 comments on commit a25da10

Please sign in to comment.