File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1046,12 +1046,12 @@ Before signing/encrypting messages, make sure to have:
1046
1046
1047
1047
.. caution ::
1048
1048
1049
- These features require messages to be rendered,
1050
- which is not always immediate.
1051
- For example, :ref: `templated emails <mailer-twig >` content is generated
1049
+ Signing and encrypting messages require their contents to be fully rendered.
1050
+ For example, the content of :ref: `templated emails <mailer-twig >` is rendered
1052
1051
by a :class: `Symfony\\ Component\\ Mailer\\ EventListener\\ MessageListener `.
1053
- If you need to sign and/or encrypt such a message, you need to do so in
1054
- a :ref: `MessageEvent <messageevent >` listener with a negative priority.
1052
+ So, if you want to sign and/or encrypt such a message, you need to do it in
1053
+ a :ref: `MessageEvent <messageevent >` listener run after it (you need to set
1054
+ a negative priority to your listener).
1055
1055
1056
1056
Signing Messages
1057
1057
~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments