Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2dd33b

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎routing.rst

Lines changed: 10 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp