@@ -65,7 +65,7 @@ may also be tags in other bundles you use that aren't listed here.
65
65
+-----------------------------------+---------------------------------------------------------------------------+
66
66
| `serializer.normalizer `_ | Register a new normalizer in the ``serializer `` service |
67
67
+-----------------------------------+---------------------------------------------------------------------------+
68
- | `swiftmailer.plugin `_ | Register a custom SwiftMailer Plugin |
68
+ | `swiftmailer.default. plugin `_ | Register a custom SwiftMailer Plugin |
69
69
+-----------------------------------+---------------------------------------------------------------------------+
70
70
| `templating.helper `_ | Make your service available in PHP templates |
71
71
+-----------------------------------+---------------------------------------------------------------------------+
@@ -833,14 +833,19 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface`.
833
833
834
834
For more details, see :doc:`/cookbook/serializer`.
835
835
836
- swiftmailer.plugin
837
- ------------------
836
+ swiftmailer.default. plugin
837
+ --------------------------
838
838
839
839
**Purpose**: Register a custom SwiftMailer Plugin
840
840
841
841
If you're using a custom SwiftMailer plugin (or want to create one), you can
842
842
register it with SwiftMailer by creating a service for your plugin and tagging
843
- it with ``swiftmailer.plugin`` (it has no options).
843
+ it with ``swiftmailer.default.plugin`` (it has no options).
844
+
845
+ .. note::
846
+
847
+ ``default`` in this tag is the name of the mailer. You should change it to the
848
+ name of your mailer in order to use this tag.
844
849
845
850
A SwiftMailer plugin must implement the ``Swift_Events_EventListener`` interface.
846
851
For more information on plugins, see `SwiftMailer's Plugin Documentation`_.
0 commit comments