Skip to content

Commit 781f89a

Browse files
committed
Merge pull request #3201 from mgrinko/patch-1
DI-tags documentation should contain 'swiftmailer.default.plugin' tag instead of 'swiftmailer.plugin' to work
2 parents fcb927d + 056d58c commit 781f89a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

reference/dic_tags.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ may also be tags in other bundles you use that aren't listed here.
6565
+-----------------------------------+---------------------------------------------------------------------------+
6666
| `serializer.normalizer`_ | Register a new normalizer in the ``serializer`` service |
6767
+-----------------------------------+---------------------------------------------------------------------------+
68-
| `swiftmailer.plugin`_ | Register a custom SwiftMailer Plugin |
68+
| `swiftmailer.default.plugin`_ | Register a custom SwiftMailer Plugin |
6969
+-----------------------------------+---------------------------------------------------------------------------+
7070
| `templating.helper`_ | Make your service available in PHP templates |
7171
+-----------------------------------+---------------------------------------------------------------------------+
@@ -833,14 +833,19 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface`.
833833
834834
For more details, see :doc:`/cookbook/serializer`.
835835
836-
swiftmailer.plugin
837-
------------------
836+
swiftmailer.default.plugin
837+
--------------------------
838838
839839
**Purpose**: Register a custom SwiftMailer Plugin
840840
841841
If you're using a custom SwiftMailer plugin (or want to create one), you can
842842
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.
844849
845850
A SwiftMailer plugin must implement the ``Swift_Events_EventListener`` interface.
846851
For more information on plugins, see `SwiftMailer's Plugin Documentation`_.

0 commit comments

Comments
 (0)