-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
DI-tags documentation should contain 'swiftmailer.default.plugin' tag instead of 'swiftmailer.plugin' to work #3201
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
SwiftMailer plugin works only if its service defined with tag 'swiftmailer.default.plugin' and does not work with tag 'swiftmailer.plugin' specified in documentation
Hmm, I'm not sure how we should document this. If the tag is So, just saying |
actually, having different tags for the different mailers was a mistake IMO (and I said it on the PR but it was merged without the change). Thus, it was breaking BC. I'm considering changing it back. |
I have just found out that current tag does not work and found the solution for my situation. |
The doc could have a notice\warning that describes what |
@stof yeah, I was also thinking why they didn't create an attribute to determine the mailer. I'm +1 for that (but that will break BC again... :( @mgrinko you're fix is correct. The only thing is that it only works when your mailer is called 'default'. That will confuse other people when they named their mailer to something else. Can you please add a note, saying that default is the name of the mailer? Something like this: .. note::
``default`` in this tag is the name of the mailer. You should change it to the
name of your mailer in order to use this tag. |
@wouterj I added your explanation as a note. |
@@ -833,14 +833,19 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface`. | |||
|
|||
For more details, see :doc:`/cookbook/serializer`. | |||
|
|||
swiftmailer.plugin | |||
swiftmailer.default.plugin | |||
------------------ |
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.
this tag line should be as long as the headline itself
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.
Done
thank you @mgrinko ! |
👍 |
DI-tags documentation should contain 'swiftmailer.default.plugin' tag instead of 'swiftmailer.plugin' to work
Great work everyone! I agree that the way this feature was implemented was a little silly and the BC break didn't make it back to the docs. But, all good now! Thanks! |
SwiftMailer plugin works only if its service defined with tag 'swiftmailer.default.plugin' and does not work with tag 'swiftmailer.plugin' specified in documentation