Commit 4f652a5
committed
bug symfony#59781 [Mailer] fix multiple transports default injection (fkropfhamer)
This PR was submitted for the 7.2 branch but it was squashed and merged into the 6.4 branch instead.
Discussion
----------
[Mailer] fix multiple transports default injection
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix symfony#46372
| License | MIT
As discussed here symfony#46372
If multiple mailer transports are configured and you try to inject the TransportInterface as a service, only the first one gets injected and not all the Transports. Therefore, X-Transport headers do not work.
Commits
-------
a50880b [Mailer] fix multiple transports default injectionFile tree
3 files changed
+2
-7
lines changed- src/Symfony/Bundle/FrameworkBundle
- DependencyInjection
- Resources/config
- Tests/DependencyInjection
3 files changed
+2
-7
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2660 | 2660 | | |
2661 | 2661 | | |
2662 | 2662 | | |
2663 | | - | |
2664 | 2663 | | |
2665 | 2664 | | |
2666 | 2665 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 49 | + | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2103 | 2103 | | |
2104 | 2104 | | |
2105 | 2105 | | |
2106 | | - | |
2107 | | - | |
| 2106 | + | |
2108 | 2107 | | |
2109 | 2108 | | |
2110 | 2109 | | |
| |||
0 commit comments