This PR allows to define a custom transport for mailer component.
To enable it, set the framework.mailer.dsn key to null and the new framework.mailer.transport_id key to the transport service id you want to inject into the default mailer instance.
…stom transports (Koc)
This PR was merged into the 4.4 branch.
[Mailer] Extract transport factory and allow create custom transports
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes, failure unrelated (master hasn't this PR)
| Fixed tickets | #31385, #32523
| License | MIT
| Doc PR | TBD
Alternative approach to allow create custom transports and register DSN for it. Replaces #31931, #31935 . Similar to already existent TansportFactory from Messenger.
- [x] Update changelog
- [x] Add more tests for factories
- [x] Add test for configuration + DI extension
5b9cded Add transport factories (closes#31385, closes#32523)
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.