@@ -67,7 +67,7 @@ may also be tags in other bundles you use that aren't listed here.
67
67
+-----------------------------------+---------------------------------------------------------------------------+
68
68
| `serializer.normalizer `_ | Register a new normalizer in the ``serializer `` service |
69
69
+-----------------------------------+---------------------------------------------------------------------------+
70
- | `swiftmailer.plugin `_ | Register a custom SwiftMailer Plugin |
70
+ | `swiftmailer.default. plugin `_ | Register a custom SwiftMailer Plugin |
71
71
+-----------------------------------+---------------------------------------------------------------------------+
72
72
| `templating.helper `_ | Make your service available in PHP templates |
73
73
+-----------------------------------+---------------------------------------------------------------------------+
@@ -847,14 +847,20 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface`.
847
847
848
848
For more details, see :doc:`/cookbook/serializer`.
849
849
850
- swiftmailer.plugin
851
- ------------------
850
+ swiftmailer.default. plugin
851
+ --------------------------
852
852
853
853
**Purpose**: Register a custom SwiftMailer Plugin
854
854
855
855
If you're using a custom SwiftMailer plugin (or want to create one), you can
856
856
register it with SwiftMailer by creating a service for your plugin and tagging
857
- it with ``swiftmailer.plugin`` (it has no options).
857
+ it with ``swiftmailer.default.plugin`` (it has no options).
858
+
859
+ .. note::
860
+
861
+ ``default`` in this tag is the name of the mailer. If you have multiple
862
+ mailers configured or have changed the default mailer name for some reason,
863
+ you should change it to the name of your mailer in order to use this tag.
858
864
859
865
A SwiftMailer plugin must implement the ``Swift_Events_EventListener`` interface.
860
866
For more information on plugins, see `SwiftMailer's Plugin Documentation`_.
0 commit comments