function DatabaseTableTrait::getUniqueToken
8 calls to DatabaseTableTrait::getUniqueToken()
- DoctrineDbalStore::delete in vendor/
symfony/ lock/ Store/ DoctrineDbalStore.php - Removes a resource from the storage.
- DoctrineDbalStore::exists in vendor/
symfony/ lock/ Store/ DoctrineDbalStore.php - Returns whether or not the resource exists in the storage.
- DoctrineDbalStore::putOffExpiration in vendor/
symfony/ lock/ Store/ DoctrineDbalStore.php - Extends the TTL of a resource.
- DoctrineDbalStore::save in vendor/
symfony/ lock/ Store/ DoctrineDbalStore.php - Stores the resource if it's not locked by someone else.
- PdoStore::delete in vendor/
symfony/ lock/ Store/ PdoStore.php - Removes a resource from the storage.
File
-
vendor/
symfony/ lock/ Store/ DatabaseTableTrait.php, line 56
Class
- DatabaseTableTrait
- @internal
Namespace
Symfony\Component\Lock\StoreCode
private function getUniqueToken(Key $key) : string {
if (!$key->hasState(__CLASS__)) {
$token = base64_encode(random_bytes(32));
$key->setState(__CLASS__, $token);
}
return $key->getState(__CLASS__);
}