Skip to content

Commit cb9c808

Browse files
committed
minor #19297 [Notifier] Note about message bus usage in notification component (cancelledbit)
This PR was submitted for the 6.4 branch but it was merged into the 6.3 branch instead. Discussion ---------- [Notifier] Note about message bus usage in notification component Previously, the documentation did not specify that if a MessageBus exists, messages are unconditionally sent through it. This leads to problems when you do not have a message consumer running Commits ------- 9efdea3 Note about message bus
2 parents 97b5ef1 + 9efdea3 commit cb9c808

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

notifier.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,22 @@ Service Package D
271271

272272
The LINE Notify, Mastodon and Twitter integrations were introduced in Symfony 6.3.
273273

274+
.. caution::
275+
276+
If you have the messenger component installed, the default component
277+
configuration implies sending notifications through the MessageBus.
278+
If you don't have a message consumer running, messages will never be sent.
279+
To send messages directly via the transport, add the following line to the configuration.
280+
281+
.. configuration-block::
282+
283+
.. code-block:: yaml
284+
285+
# config/packages/notifier.yaml
286+
framework:
287+
notifier:
288+
message_bus: false
289+
274290
Chatters are configured using the ``chatter_transports`` setting:
275291

276292
.. code-block:: bash

0 commit comments

Comments
 (0)