Skip to content

Commit 120c143

Browse files
committed
[Notifier] Add section Disabling Delivery
1 parent de49f6d commit 120c143

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
@@ -564,6 +564,26 @@ and
564564
:class:`Symfony\\Component\\Notifier\\Notification\\EmailNotificationInterface`
565565
also exists to modify messages send to those channels.
566566

567+
Development & Debugging
568+
-----------------------
569+
570+
Disabling Delivery
571+
~~~~~~~~~~~~~~~~~~
572+
573+
While developing (or testing), you may want to disable delivery of notifications entirely.
574+
You can do this by forcing Notifier to use the ``NullTransport`` for all configured texter
575+
and chatter transports in only the ``dev`` environment:
576+
577+
.. code-block:: yaml
578+
579+
# config/packages/dev/notifier.yaml
580+
framework:
581+
notifier:
582+
texter_transports:
583+
twilio: 'null://null'
584+
chatter_transports:
585+
slack: 'null://null'
586+
567587
.. TODO
568588
- Using the message bus for asynchronous notification
569589
- Describe notifier monolog handler

0 commit comments

Comments
 (0)