Skip to content

Commit 3f0bf94

Browse files
NyholmOskarStark
authored andcommitted
[EventDispatcher] Show partial matching for debug:event-dispatcher
1 parent e68926f commit 3f0bf94

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

event_dispatcher.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,17 @@ its name:
322322
323323
$ php bin/console debug:event-dispatcher kernel.exception
324324
325+
or can get everything which partial matches the event name:
326+
327+
.. code-block:: terminal
328+
329+
$ php bin/console debug:event-dispatcher kernel // matches "kernel.exception", "kernel.response" etc.
330+
$ php bin/console debug:event-dispatcher Security // matches "Symfony\Component\Security\Http\Event\CheckPassportEvent"
331+
332+
.. versionadded:: 5.3
333+
334+
The ability to match partial event names was introduced in Symfony 5.3.
335+
325336
The :doc:`new experimental Security </security/experimental_authenticators>`
326337
system adds an event dispatcher per firewall. Use the ``--dispatcher`` option to
327338
get the registered listeners for a particular event dispatcher:

0 commit comments

Comments
 (0)