class UriSigner
Signs URIs.
__construct(string $secret) Constructor. | ||
string | sign(string $uri) Signs a URI. | |
bool | check(string $uri) Checks that a URI contains the correct hash. |
Constructor.
Signs a URI.
The given URI is signed by adding a _hash query string parameter which value depends on the URI and the secret.
Checks that a URI contains the correct hash.
The _hash query string parameter must be the last one (as it is generated that way by the sign() method, it should never be a problem).
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpKernel/UriSigner.html