Skip to content

Commit 242d4f6

Browse files
committed
feature #4319 Documentation for debug:event-dispatcher command (matthieuauger)
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
2 parents 217bf5f + a4fed11 commit 242d4f6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: 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)