File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -540,7 +540,7 @@ is mocked so it uses the mocked time if no timestamp is specified.
540540Other functions with an optional timestamp parameter that defaults to ``time() ``
541541will still use the system time instead of the mocked time. This means that you
542542may need to change some code in your tests. For example, instead of ``new DateTime() ``,
543- you should use ``DateTime::createFromFormat('U', time()) `` to use the mocked
543+ you should use ``DateTime::createFromFormat('U', (string) time()) `` to use the mocked
544544``time() `` function.
545545
546546To use the ``ClockMock `` class in your test, add the ``@group time-sensitive ``
Original file line number Diff line number Diff line change @@ -936,6 +936,8 @@ This makes use of the :ref:`styles Twig namespace <mailer-css-namespace>` we cre
936936earlier. You could, for example, `download the foundation-emails.css file `_
937937directly from GitHub and save it in ``assets/styles ``.
938938
939+ .. _signing-and-encrypting-messages :
940+
939941Signing and Encrypting Messages
940942-------------------------------
941943
@@ -1389,6 +1391,13 @@ is sent::
13891391 }
13901392 }
13911393
1394+ .. tip ::
1395+
1396+ When using a ``MessageEvent `` listener to
1397+ :doc: `sign the email contents <signing-and-encrypting-messages >`, run it as
1398+ late as possible (e.g. setting a negative priority for it) so the email
1399+ contents are not set or modified after signing them.
1400+
13921401Development & Debugging
13931402-----------------------
13941403
You can’t perform that action at this time.
0 commit comments