Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices::generateCookieHash
Generates a hash for the cookie to ensure it is not being tempered with
Signature
protected function generateCookieHash(string
$class,
string
$username,
integer
$expires,
string
$password )
Parameters
$class
—
string
$username
—
string
- The username
$expires
—
integer
- The unixtime when the cookie expires
$password
—
string
- The encoded password
Returns
- string
Errors/Exceptions
-
RuntimeException
- when the private key is empty