Skip to content

Commit 2d7d9ce

Browse files
committed
minor #18975 Document change of UriSigner namespace (SzymonKaminski)
This PR was merged into the 6.4 branch. Discussion ---------- Document change of UriSigner namespace Fixes #18973 Commits ------- 4c87592 Document change of UriSigner namespace
2 parents 8fbfd98 + 4c87592 commit 2d7d9ce

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

routing.rst

Lines 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)