-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
document the ability to configure more than one mailer at the same time #3464
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
xabbuh
commented
Jan 11, 2014
Q | A |
---|---|
Doc fix? | no |
New docs? | yes (symfony/swiftmailer-bundle#34) |
Applies to | all |
Fixed tickets | #3440 |
Please add note about retriving concrete mailer from container. |
Thanks for your feedback @Koc. I added a paragraph demonstrating this. |
@xabbuh This is absolutely great work. My only thought is if we can save on some duplication by not repeating the options under the second mailer (just show have the second mailer key, then ... under it - or even # all the same potential options ...). What do you think? |
@weaverryan that's a good point. I shortened the examples. What do you think? I'm not so glad with the XML example but shorten them is not really possible without destroying the syntax highlighting. |
// ... | ||
|
||
// returns the primary mailer | ||
$container->get('swiftmailer.mailer.primary_mailer'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first_mailer
document the ability to configure more than one mailer at the same time
@xabbuh I think it's great. True, the XML still has quite a bit of code in it, but it's mostly the boilerplate elements/namespaces that won't change anyways. Great job on this! |
@weaverryan you forgot to use gh here ;) |
Haha, yea, I got too excited :) |