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 @@ -511,7 +511,7 @@ is mocked so it uses the mocked time if no timestamp is specified.
511511Other functions with an optional timestamp parameter that defaults to ``time() ``
512512will still use the system time instead of the mocked time. This means that you
513513may need to change some code in your tests. For example, instead of ``new DateTime() ``,
514- you should use ``DateTime::createFromFormat('U', time()) `` to use the mocked
514+ you should use ``DateTime::createFromFormat('U', (string) time()) `` to use the mocked
515515``time() `` function.
516516
517517To use the ``ClockMock `` class in your test, add the ``@group time-sensitive ``
Original file line number Diff line number Diff line change @@ -929,6 +929,8 @@ This makes use of the :ref:`styles Twig namespace <mailer-css-namespace>` we cre
929929earlier. You could, for example, `download the foundation-emails.css file `_
930930directly from GitHub and save it in ``assets/styles ``.
931931
932+ .. _signing-and-encrypting-messages :
933+
932934Signing and Encrypting Messages
933935-------------------------------
934936
@@ -1309,6 +1311,13 @@ is sent::
13091311 }
13101312 }
13111313
1314+ .. tip ::
1315+
1316+ When using a ``MessageEvent `` listener to
1317+ :doc: `sign the email contents <signing-and-encrypting-messages >`, run it as
1318+ late as possible (e.g. setting a negative priority for it) so the email
1319+ contents are not set or modified after signing them.
1320+
13121321Development & Debugging
13131322-----------------------
13141323
You can’t perform that action at this time.
0 commit comments