Signs a URI.
The given URI is signed by adding a _hash query string parameter which value depends on the URI and the secret.
string $uri A URI to sign:
string The signed URI
public function sign($uri) {
return $uri . (false === strpos($uri, '?') ? '?' : '&') . '_hash=' . $this
->computeHash($uri);
}