File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 568568:class: `Symfony\\ Component\\ Notifier\\ Notification\\ EmailNotificationInterface `
569569also exists to modify messages send to those channels.
570570
571+ Disabling Delivery
572+ ------------------
573+
574+ While developing (or testing), you may want to disable delivery of notifications
575+ entirely. You can do this by forcing Notifier to use the ``NullTransport `` for
576+ all configured texter and chatter transports only in the ``dev `` (and/or
577+ ``test ``) environment:
578+
579+ .. code-block :: yaml
580+
581+ # config/packages/dev/notifier.yaml
582+ framework :
583+ notifier :
584+ texter_transports :
585+ twilio : ' null://null'
586+ chatter_transports :
587+ slack : ' null://null'
588+
571589.. TODO
572590 - Using the message bus for asynchronous notification
573591 - Describe notifier monolog handler
You can’t perform that action at this time.
0 commit comments