Skip to content

Commit 9fde062

Browse files
committed
[Notifier] Add section Disabling Delivery
1 parent 16c5ba2 commit 9fde062

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

notifier.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,26 @@ and
553553
:class:`Symfony\\Component\\Notifier\\Notification\\EmailNotificationInterface`
554554
also exists to modify messages send to those channels.
555555

556+
Development & Debugging
557+
-----------------------
558+
559+
Disabling Delivery
560+
~~~~~~~~~~~~~~~~~~
561+
562+
While developing (or testing), you may want to disable delivery of notifications entirely.
563+
You can do this by forcing Notifier to use the ``NullTransport`` for all configured texter
564+
and chatter transports in only the ``dev`` environment:
565+
566+
.. code-block:: yaml
567+
568+
# config/packages/dev/notifier.yaml
569+
framework:
570+
notifier:
571+
texter_transports:
572+
twilio: 'null://null'
573+
chatter_transports:
574+
slack: 'null://null'
575+
556576
.. TODO
557577
- Using the message bus for asynchronous notification
558578
- Describe notifier monolog handler

0 commit comments

Comments
 (0)