function ExpiringStoreTrait::checkNotExpired
15 calls to ExpiringStoreTrait::checkNotExpired()
- CombinedStore::putOffExpiration in vendor/
symfony/ lock/ Store/ CombinedStore.php - Extends the TTL of a resource.
- CombinedStore::save in vendor/
symfony/ lock/ Store/ CombinedStore.php - Stores the resource if it's not locked by someone else.
- CombinedStore::saveRead in vendor/
symfony/ lock/ Store/ CombinedStore.php - Stores the resource if it's not locked for reading by someone else.
- 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.
File
-
vendor/
symfony/ lock/ Store/ ExpiringStoreTrait.php, line 19
Class
Namespace
Symfony\Component\Lock\StoreCode
private function checkNotExpired(Key $key) : void {
if ($key->isExpired()) {
try {
$this->delete($key);
} catch (\Exception) {
// swallow exception to not hide the original issue
}
throw new LockExpiredException(\sprintf('Failed to store the "%s" lock.', $key));
}
}