Skip to content

[EventDispatcher] Show partial matching for debug:event-dispatcher #14659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,17 @@ its name:

$ php bin/console debug:event-dispatcher kernel.exception

or can get everything which partial matches the event name:

.. code-block:: terminal

$ php bin/console debug:event-dispatcher kernel // matches "kernel.exception", "kernel.response" etc.
$ php bin/console debug:event-dispatcher Security // matches "Symfony\Component\Security\Http\Event\CheckPassportEvent"

.. versionadded:: 5.3

The ability to match partial event names was introduced in Symfony 5.3.

The :doc:`new experimental Security </security/experimental_authenticators>`
system adds an event dispatcher per firewall. Use the ``--dispatcher`` option to
get the registered listeners for a particular event dispatcher:
Expand Down