File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -98,20 +98,28 @@ binary. For third-party providers, refers to the following table:
98
98
Failover Transport
99
99
------------------
100
100
101
- You can create failover transport with the help of `|| ` operator ::
101
+ You can create failover transport with the help of `` failover() `` keyword ::
102
102
103
- $dsn = 'api://id@postmark || smtp://key@sendgrid';
103
+ $dsn = 'failover( api://id@postmark smtp://key@sendgrid) ';
104
104
105
105
So if the first transport fails, the mailer will attempt to send through the
106
106
second transport.
107
107
108
+ .. versionadded :: 4.4
109
+
110
+ The ``failover() `` keyword was introduced in Symfony 4.4.
111
+
108
112
Round Robin
109
113
-----------
110
114
111
115
If you want to send emails by using multiple transports in a round-robin fashion,
112
- you can use the ``&& `` operator between the transports::
116
+ you can use the ``roundrobin() `` keyword with the transports::
117
+
118
+ $dsn = 'roundrobin(api://id@postmark smtp://key@sendgrid)'
119
+
120
+ .. versionadded :: 4.4
113
121
114
- $dsn = 'api://id@postmark && smtp://key@sendgrid'
122
+ The `` roundrobin() `` keyword was introduced in Symfony 4.4.
115
123
116
124
Sending emails asynchronously
117
125
-----------------------------
Original file line number Diff line number Diff line change @@ -563,12 +563,18 @@ errors. It's useful to run it before deploying your application to production
563
563
564
564
.. code-block :: terminal
565
565
566
- # check all the templates stored in a directory
567
- $ php bin/console lint:twig templates/
566
+ # check all the application templates
567
+ $ php bin/console lint:twig
568
568
569
- # you can also check individual templates
569
+ # you can also check directories and individual templates
570
+ $ php bin/console lint:twig templates/email/
570
571
$ php bin/console lint:twig templates/article/recent_list.html.twig
571
572
573
+ .. versionadded :: 4.4
574
+
575
+ The feature that checks all the application templates when not passing any
576
+ arguments to ``lint:twig `` was introduced in Symfony 4.4.
577
+
572
578
Inspecting Twig Information
573
579
~~~~~~~~~~~~~~~~~~~~~~~~~~~
574
580
You can’t perform that action at this time.
0 commit comments