File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ is mocked so it uses the mocked time if no timestamp is specified.
563
563
Other functions with an optional timestamp parameter that defaults to ``time() ``
564
564
will still use the system time instead of the mocked time. This means that you
565
565
may need to change some code in your tests. For example, instead of ``new DateTime() ``,
566
- you should use ``DateTime::createFromFormat('U', time()) `` to use the mocked
566
+ you should use ``DateTime::createFromFormat('U', (string) time()) `` to use the mocked
567
567
``time() `` function.
568
568
569
569
To use the ``ClockMock `` class in your test, add the ``@group time-sensitive ``
Original file line number Diff line number Diff line change @@ -993,6 +993,8 @@ This makes use of the :ref:`styles Twig namespace <mailer-css-namespace>` we cre
993
993
earlier. You could, for example, `download the foundation-emails.css file `_
994
994
directly from GitHub and save it in ``assets/styles ``.
995
995
996
+ .. _signing-and-encrypting-messages :
997
+
996
998
Signing and Encrypting Messages
997
999
-------------------------------
998
1000
@@ -1391,6 +1393,13 @@ is sent::
1391
1393
}
1392
1394
}
1393
1395
1396
+ .. tip ::
1397
+
1398
+ When using a ``MessageEvent `` listener to
1399
+ :doc: `sign the email contents <signing-and-encrypting-messages >`, run it as
1400
+ late as possible (e.g. setting a negative priority for it) so the email
1401
+ contents are not set or modified after signing them.
1402
+
1394
1403
Development & Debugging
1395
1404
-----------------------
1396
1405
You can’t perform that action at this time.
0 commit comments