Skip to content

Commit a2dd33b

Browse files
committed
minor #20903 [Routing] add tip about using symfony/clock with UriSigner (kbond)
This PR was merged into the 7.3 branch. Discussion ---------- [Routing] add tip about using `symfony/clock` with `UriSigner` Closes #20902 Commits ------- 5482c82 [Routing] add tip about using `symfony/clock` with `UriSigner`
2 parents 76c4720 + 5482c82 commit a2dd33b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

routing.rst

+10
Original file line numberDiff line numberDiff line change
@@ -2835,6 +2835,16 @@ If you need to know the reason why a signed URI is invalid, you can use the
28352835

28362836
The ``verify()`` method was introduced in Symfony 7.3.
28372837

2838+
.. tip::
2839+
2840+
If ``symfony/clock`` is installed, it is used for creating and verifying the
2841+
expiration. This allows you to :ref:`mock the current time in your tests
2842+
<clock_writing-tests>`.
2843+
2844+
.. versionadded:: 7.3
2845+
2846+
``symfony/clock`` support was added to ``UriSigner`` in Symfony 7.3.
2847+
28382848
Troubleshooting
28392849
---------------
28402850

0 commit comments

Comments
 (0)