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.
540
540
Other functions with an optional timestamp parameter that defaults to ``time() ``
541
541
will still use the system time instead of the mocked time. This means that you
542
542
may 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
544
544
``time() `` function.
545
545
546
546
To 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
936
936
earlier. You could, for example, `download the foundation-emails.css file `_
937
937
directly from GitHub and save it in ``assets/styles ``.
938
938
939
+ .. _signing-and-encrypting-messages :
940
+
939
941
Signing and Encrypting Messages
940
942
-------------------------------
941
943
@@ -1389,6 +1391,13 @@ is sent::
1389
1391
}
1390
1392
}
1391
1393
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
+
1392
1401
Development & Debugging
1393
1402
-----------------------
1394
1403
You can’t perform that action at this time.
0 commit comments