core-bundle/src/Security/Authentication/RememberMe/DatabaseTokenProvider.php
public function createNewToken(PersistentTokenInterface $token): void
    {
        $sql = '
            INSERT INTO
                tl_remember_me
                (class, username, series, value, lastUsed)
            VALUES
                (:class, :username, :series, :value, :lastUsed)
        ';

        $values = [
            'class' => $token->getClass(),
            'username' => $token->getUsername(),
            'series' => hash_hmac('sha256', $token->getSeries(), $this->secret),
            'value' => $token->getTokenValue(),
            'lastUsed' => $token->getLastUsed(),
        ];

        $types = [
            'class' => \PDO::PARAM_STR,
            'username' => \PDO::PARAM_STR,
            'series' => \PDO::PARAM_STR,
            'value' => \PDO::PARAM_STR,
            'lastUsed' => DoctrineType::DATETIME,
        ];

        $this->connection->executeUpdate($sql, $values, $types);
    }
public function createNewToken(PersistentTokenInterface $token): void
    {
        $sql = '
            INSERT INTO
                tl_remember_me
                (class, username, series, value, lastUsed)
            VALUES
                (:class, :username, :series, :value, :lastUsed)
        ';

        $values = [
            'class' => $token->getClass(),
            'username' => $token->getUsername(),
            'series' => hash_hmac('sha256', $token->getSeries(), $this->secret),
            'value' => $token->getTokenValue(),
            'lastUsed' => $token->getLastUsed(),
        ];

        $types = [
            'class' => \PDO::PARAM_STR,
            'username' => \PDO::PARAM_STR,
            'series' => \PDO::PARAM_STR,
            'value' => \PDO::PARAM_STR,
            'lastUsed' => DoctrineType::DATETIME,
        ];

        $this->connection->executeUpdate($sql, $values, $types);
    }
{@inheritdoc}