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 553553:class: `Symfony\\ Component\\ Notifier\\ Notification\\ EmailNotificationInterface `
554554also 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 `` (or respectively ``test ``) 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
You can’t perform that action at this time.
0 commit comments