class UriSigner
Signs URIs.
__construct(string $secret, string $parameter = '_hash') | ||
string | sign(string $uri) Signs a URI. | |
bool | check(string $uri) Checks that a URI contains the correct hash. |
string | $secret | A secret |
string | $parameter | Query string parameter to use |
Signs a URI.
The given URI is signed by adding the query string parameter which value depends on the URI and the secret.
string | $uri | A URI to sign |
string | The signed URI |
Checks that a URI contains the correct hash.
string | $uri | A signed URI |
bool | True if the URI is signed correctly, false otherwise |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/UriSigner.html