File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 553
553
:class: `Symfony\\ Component\\ Notifier\\ Notification\\ EmailNotificationInterface `
554
554
also exists to modify messages send to those channels.
555
555
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
+
556
576
.. TODO
557
577
- Using the message bus for asynchronous notification
558
578
- Describe notifier monolog handler
You can’t perform that action at this time.
0 commit comments