/**
* @return void
*/
public function createNewToken(PersistentTokenInterface
$token) { $sql = 'INSERT INTO rememberme_token (class, username, series, value, lastUsed) VALUES (:class, :username, :series, :value, :lastUsed)';
$paramValues =
[ 'class' =>
$token->
getClass(),
'username' =>
$token->
getUserIdentifier(),
'series' =>
$token->
getSeries(),
'value' =>
$token->
getTokenValue(),
'lastUsed' => \DateTimeImmutable::
createFromInterface($token->
getLastUsed()),
];
$paramTypes =
[ 'class' => ParameterType::STRING,
'username' => ParameterType::STRING,
'series' => ParameterType::STRING,
'value' => ParameterType::STRING,
'lastUsed' => Types::DATETIME_IMMUTABLE,
];
$this->conn->
executeStatement($sql,
$paramValues,
$paramTypes);
}