Skip to content

Commit

Permalink
feature #4319 Documentation for debug:event-dispatcher command (matth…
Browse files Browse the repository at this point in the history
…ieuauger)

This PR was merged into the master branch.

Discussion
----------

Documentation for debug:event-dispatcher command

See #4230

As my english is far from perfect, I tried to make it short. Any feedback/suggestions welcome

Commits
-------

a4fed11 Documentation for debug:event-dispatcher command
  • Loading branch information
weaverryan committed Nov 3, 2014
2 parents 217bf5f + a4fed11 commit 242d4f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cookbook/service_container/event_listener.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,20 @@ done as follow::
Two types of request are available in the :class:`Symfony\\Component\\HttpKernel\\HttpKernelInterface`
interface: ``HttpKernelInterface::MASTER_REQUEST`` and
``HttpKernelInterface::SUB_REQUEST``.

Debugging Event Listeners
-------------------------

You can find out what listeners are registered in the event dispatcher
using the console. To show all events and their listeners, run:

.. code-block:: bash
$ php app/console debug:event-dispatcher
You can get registered listeners for a particular event by specifying
its name:

.. code-block:: bash
$ php app/console debug:event-dispatcher kernel.exception

0 comments on commit 242d4f6

Please sign in to comment.