File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -954,9 +954,10 @@ Development & Debugging
954
954
Disabling Delivery
955
955
~~~~~~~~~~~~~~~~~~
956
956
957
- While developing (or testing), you may want to disable delivery of messages entirely.
958
- You can do this by forcing Mailer to use the ``NullTransport `` in only the ``dev ``
959
- environment:
957
+ While developing (or testing), you may want to disable delivery of messages
958
+ entirely. You can do this by using ``null://null `` as the mailer DSN, either in
959
+ your :ref: `.env configuration files <configuration-multiple-env-files >` or in
960
+ the mailer configuration file (e.g. in the ``dev `` or ``test `` environments):
960
961
961
962
.. configuration-block ::
962
963
@@ -994,14 +995,6 @@ environment:
994
995
],
995
996
]);
996
997
997
- You can also disable delivering with an environment variable in your `.env.test ` file
998
- (or you can create a `.env.test.local ` file for example) :
999
-
1000
- .. code-block :: bash
1001
-
1002
- # .env.test
1003
- MAILER_DSN=null://null
1004
-
1005
998
.. note ::
1006
999
1007
1000
If you're using Messenger and routing to a transport, the message will *still *
You can’t perform that action at this time.
0 commit comments