-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Swiftmailer] create Message by mailer service. #4884
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
Conversation
This seems weird to me. Messages should be created the Swiftmailer way IMO |
@stof can you explain why? Without any knowledge about the subject, I would say that the proposed way is better, as it doesn't advocate anti patterns. |
i think this is smarter? 👍 |
If you dig deep enough, it looks like I see some practical disadvantages, so 👎 for me. Cheers! |
the cool thing about |
@wouterj if you don't want to use anti-patterns, don't use Swiftmailer. It uses static service location everywhere anyway (and in very weird ways as it even uses it when calling the parent constructor). @timglabisch extending the mailer to change the creation of the message looks like the wrong extension point to me. The mailer is here to send messages, not to compose them |
Hmm, I think the decision is to not do this. In that case, #4808 has to be reverted |
It complete the PR: #4808