Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExpiringStoreTrait.php

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.

... See full list

File

vendor/symfony/lock/Store/ExpiringStoreTrait.php, line 19

Class

ExpiringStoreTrait

Namespace

Symfony\Component\Lock\Store

Code

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));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal