From c8d2ab1064689c7ac5aebebcc63b1e804d24b62d Mon Sep 17 00:00:00 2001 From: Michael Grinko Date: Mon, 18 Nov 2013 14:02:15 +0200 Subject: [PATCH 1/4] Update dic_tags.rst SwiftMailer plugin works only if its service defined with tag 'swiftmailer.default.plugin' and does not work with tag 'swiftmailer.plugin' specified in documentation --- reference/dic_tags.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 06674bbb953..080831bdc87 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -65,7 +65,7 @@ may also be tags in other bundles you use that aren't listed here. +-----------------------------------+---------------------------------------------------------------------------+ | `serializer.normalizer`_ | Register a new normalizer in the ``serializer`` service | +-----------------------------------+---------------------------------------------------------------------------+ -| `swiftmailer.plugin`_ | Register a custom SwiftMailer Plugin | +| `swiftmailer.default.plugin`_ | Register a custom SwiftMailer Plugin | +-----------------------------------+---------------------------------------------------------------------------+ | `templating.helper`_ | Make your service available in PHP templates | +-----------------------------------+---------------------------------------------------------------------------+ @@ -833,14 +833,14 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface`. For more details, see :doc:`/cookbook/serializer`. -swiftmailer.plugin +swiftmailer.default.plugin ------------------ **Purpose**: Register a custom SwiftMailer Plugin If you're using a custom SwiftMailer plugin (or want to create one), you can register it with SwiftMailer by creating a service for your plugin and tagging -it with ``swiftmailer.plugin`` (it has no options). +it with ``swiftmailer.default.plugin`` (it has no options). A SwiftMailer plugin must implement the ``Swift_Events_EventListener`` interface. For more information on plugins, see `SwiftMailer's Plugin Documentation`_. From 80db5045013847bd1823b5935acf7435c08b80c9 Mon Sep 17 00:00:00 2001 From: Michael Grinko Date: Mon, 18 Nov 2013 16:17:51 +0200 Subject: [PATCH 2/4] Update dic_tags.rst --- reference/dic_tags.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 080831bdc87..3f715e83ef6 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -840,7 +840,9 @@ swiftmailer.default.plugin If you're using a custom SwiftMailer plugin (or want to create one), you can register it with SwiftMailer by creating a service for your plugin and tagging -it with ``swiftmailer.default.plugin`` (it has no options). +it with ``swiftmailer.default.plugin`` (it has no options). ``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. A SwiftMailer plugin must implement the ``Swift_Events_EventListener`` interface. For more information on plugins, see `SwiftMailer's Plugin Documentation`_. From 0d3f92bbe68543a90eaaaddb549ac1e962608da5 Mon Sep 17 00:00:00 2001 From: Michael Grinko Date: Mon, 18 Nov 2013 16:27:32 +0200 Subject: [PATCH 3/4] Update dic_tags.rst --- reference/dic_tags.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 3f715e83ef6..daa30de075f 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -840,9 +840,12 @@ swiftmailer.default.plugin If you're using a custom SwiftMailer plugin (or want to create one), you can register it with SwiftMailer by creating a service for your plugin and tagging -it with ``swiftmailer.default.plugin`` (it has no options). ``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. +it with ``swiftmailer.default.plugin`` (it has no options). + +.. 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. A SwiftMailer plugin must implement the ``Swift_Events_EventListener`` interface. For more information on plugins, see `SwiftMailer's Plugin Documentation`_. From 056d58ce803a4b076b31d06287b84857bfcdd3ab Mon Sep 17 00:00:00 2001 From: Michael Grinko Date: Mon, 18 Nov 2013 18:37:56 +0200 Subject: [PATCH 4/4] Update dic_tags.rst --- reference/dic_tags.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index daa30de075f..9eefdd06fdd 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -834,7 +834,7 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface`. For more details, see :doc:`/cookbook/serializer`. swiftmailer.default.plugin ------------------- +-------------------------- **Purpose**: Register a custom SwiftMailer Plugin