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

Appearance settings

Commit 4c87592

Browse filesBrowse files
Document change of UriSigner namespace
1 parent 8e71bd2 commit 4c87592
Copy full SHA for 4c87592

File tree

Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed

‎routing.rst

Copy file name to clipboardExpand all lines: routing.rst
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,13 +2693,13 @@ A signed URI is an URI that includes a hash value that depends on the contents o
26932693
the URI. This way, you can later check the integrity of the signed URI by
26942694
recomputing its hash value and comparing it with the hash included in the URI.
26952695

2696-
Symfony provides a utility to sign URIs via the :class:`Symfony\\Component\\HttpKernel\\UriSigner`
2696+
Symfony provides a utility to sign URIs via the :class:`Symfony\\Component\\HttpFoundation\\UriSigner`
26972697
service, which you can inject in your services or controllers::
26982698

26992699
// src/Service/SomeService.php
27002700
namespace App\Service;
27012701

2702-
use Symfony\Component\HttpKernel\UriSigner;
2702+
use Symfony\Component\HttpFoundation\UriSigner;
27032703

27042704
class SomeService
27052705
{
@@ -2729,6 +2729,12 @@ service, which you can inject in your services or controllers::
27292729
}
27302730
}
27312731

2732+
.. versionadded:: 6.4
2733+
2734+
The namespace of the ``UriSigner`` class changed in Symfony 6.4 from
2735+
``Symfony\Component\HttpKernel\UriSigner`` to
2736+
``Symfony\Component\HttpFoundation\UriSigner``.
2737+
27322738
Troubleshooting
27332739
---------------
27342740

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.