Skip to content

Commit b594b02

Browse files
committed
feature #14659 [EventDispatcher] Show partial matching for debug:event-dispatcher (Nyholm)
This PR was squashed before being merged into the 5.3-dev branch. Discussion ---------- [EventDispatcher] Show partial matching for debug:event-dispatcher This will fix #14657 #SymfonyHackday Commits ------- 3f0bf94 [EventDispatcher] Show partial matching for debug:event-dispatcher
2 parents e68926f + 3f0bf94 commit b594b02

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)