Skip to content

Commit a4fed11

Browse files
author
Matthieu Auger
committed
Documentation for debug:event-dispatcher command
1 parent 217bf5f commit a4fed11

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cookbook/service_container/event_listener.rst

+17
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,20 @@ done as follow::
133133
Two types of request are available in the :class:`Symfony\\Component\\HttpKernel\\HttpKernelInterface`
134134
interface: ``HttpKernelInterface::MASTER_REQUEST`` and
135135
``HttpKernelInterface::SUB_REQUEST``.
136+
137+
Debugging Event Listeners
138+
-------------------------
139+
140+
You can find out what listeners are registered in the event dispatcher
141+
using the console. To show all events and their listeners, run:
142+
143+
.. code-block:: bash
144+
145+
$ php app/console debug:event-dispatcher
146+
147+
You can get registered listeners for a particular event by specifying
148+
its name:
149+
150+
.. code-block:: bash
151+
152+
$ php app/console debug:event-dispatcher kernel.exception

0 commit comments

Comments
 (0)