This repository was archived by the owner on Feb 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
DependencyInjection/Compiler Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change
1
+ **Swiftmailer will stop being maintained at the end of November 2021.**
2
+
3
+ Please, move to Symfony Mailer at your earliest convenience.
4
+ Symfony Mailer is the next evolution of Swiftmailer.
5
+ It provides the same features with support for modern PHP code and support for third-party providers.
6
+ See https://symfony.com/doc/current/mailer.html for more information.
7
+
1
8
# 3.5.0
2
9
3
10
* Fix support for "stream_options" in configuration
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class EnsureNoHotPathPass extends AbstractRecursivePass
20
20
{
21
21
protected function processValue ($ value , $ isRoot = false )
22
22
{
23
- if ($ value instanceof Definition && 0 === strpos ( $ value ->getClass (), 'Swift_ ' )) {
23
+ if ($ value instanceof Definition && null !== ( $ class = $ value ->getClass ()) && 0 === strpos ( $ class , 'Swift_ ' )) {
24
24
$ value ->clearTag ('container.hot_path ' );
25
25
}
26
26
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function onException()
45
45
46
46
public function onTerminate ()
47
47
{
48
- if (!$ this ->container ->has ('mailer ' ) || $ this ->wasExceptionThrown ) {
48
+ if (( !$ this ->container ->has ('mailer ' ) && ! $ this -> container -> has ( ' swiftmailer.mailer.default ' ) ) || $ this ->wasExceptionThrown ) {
49
49
return ;
50
50
}
51
51
$ mailers = array_keys ($ this ->container ->getParameter ('swiftmailer.mailers ' ));
Original file line number Diff line number Diff line change 1
1
Installation
2
2
============
3
3
4
+ **Swiftmailer will stop being maintained at the end of November 2021. **
5
+
6
+ Please, move to `Symfony Mailer <https://symfony.com/doc/current/mailer.html >`_ at your earliest convenience.
7
+ `Symfony Mailer <https://symfony.com/doc/current/mailer.html >`_ is the next evolution of Swiftmailer.
8
+ It provides the same features with support for modern PHP code and support for third-party providers.
9
+
4
10
Step 1: Download the Bundle
5
11
---------------------------
6
12
You can’t perform that action at this time.
0 commit comments