Skip to content
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 messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3303,6 +3303,7 @@ In addition to middleware, Messenger also dispatches several events. You can
of the process. For each, the event class is the event name:

* :class:`Symfony\\Component\\Messenger\\Event\\SendMessageToTransportsEvent`
* :class:`Symfony\\Component\\Messenger\\Event\\MessageSentToTransportsEvent`
* :class:`Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent`
* :class:`Symfony\\Component\\Messenger\\Event\\WorkerMessageHandledEvent`
* :class:`Symfony\\Component\\Messenger\\Event\\WorkerMessageReceivedEvent`
Expand All @@ -3312,6 +3313,16 @@ of the process. For each, the event class is the event name:
* :class:`Symfony\\Component\\Messenger\\Event\\WorkerStartedEvent`
* :class:`Symfony\\Component\\Messenger\\Event\\WorkerStoppedEvent`

.. versionadded:: 7.4

The ``MessageSentToTransportsEvent`` event was introduced in Symfony 7.4.

.. note::

The ``MessageSentToTransportsEvent`` event is dispatched **only** after a
message was sent to at least one transport. If the message was sent to
multiple transports, the event is dispatched only once.

Additional Handler Arguments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down