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
954954Disabling Delivery
955955~~~~~~~~~~~~~~~~~~
956956
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):
960961
961962.. configuration-block ::
962963
@@ -994,14 +995,6 @@ environment:
994995 ],
995996 ]);
996997
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-
1005998 .. note ::
1006999
10071000 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