Skip to content

[Mailer][FrameworkBundle] Add a way to use a custom transport #31931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

kevin-verschaeve
Copy link
Contributor

@kevin-verschaeve kevin-verschaeve commented Jun 7, 2019

Q A
Branch? 4.4
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? todo
Fixed tickets #31385
License MIT
Doc PR todo

Add a "custom" provider, to allow using a custom transport class.

MAILER_DSN=http://user:pass@custom

can fix #31385

@kevin-verschaeve kevin-verschaeve force-pushed the mailer/custom-transport branch from 653bc72 to dc59b0e Compare June 7, 2019 12:38
@kevin-verschaeve kevin-verschaeve changed the title [Mailer] Add a way to use a custom transport [Mailer][FrameworkBundle] Add a way to use a custom transport Jun 7, 2019
@nicolas-grekas nicolas-grekas added this to the next milestone Jun 7, 2019
@nicolas-grekas nicolas-grekas changed the base branch from master to 4.4 June 7, 2019 13:51
@nicolas-grekas
Copy link
Member

please rebase for 4.4

@kevin-verschaeve kevin-verschaeve force-pushed the mailer/custom-transport branch from dc59b0e to dd07ad3 Compare June 7, 2019 14:02
@kevin-verschaeve
Copy link
Contributor Author

Branch changed to 4.4

@kevin-verschaeve kevin-verschaeve force-pushed the mailer/custom-transport branch 2 times, most recently from d4b1405 to 2eff65d Compare June 11, 2019 08:26
@kevin-verschaeve kevin-verschaeve force-pushed the mailer/custom-transport branch from 2eff65d to b91e330 Compare June 11, 2019 08:27
@fabpot
Copy link
Member

fabpot commented Jun 29, 2019

This implementation would only allow one custom DSN, but we want third-parties to be able to provide their own DSN, so we need multiple possible custom DSNs.

@fabpot fabpot closed this Jun 29, 2019
fabpot added a commit that referenced this pull request Jul 17, 2019
…stom transports (Koc)

This PR was merged into the 4.4 branch.

Discussion
----------

[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.

TODO:
 - [x] Update changelog
 - [x] Add more tests for factories
 - [x] Add test for configuration + DI extension

Commits
-------

5b9cded Add transport factories (closes #31385, closes #32523)
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Mailer] Allow create custom transports and register DSN for it
6 participants