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

Breadcrumb

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

function CombinedStore::delete

Overrides PersistingStoreInterface::delete

3 calls to CombinedStore::delete()
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.

File

vendor/symfony/lock/Store/CombinedStore.php, line 162

Class

CombinedStore
CombinedStore is a PersistingStoreInterface implementation able to manage and synchronize several StoreInterfaces.

Namespace

Symfony\Component\Lock\Store

Code

public function delete(Key $key) : void {
    foreach ($this->stores as $store) {
        try {
            $store->delete($key);
        } catch (\Exception $e) {
            $this->logger?->notice('One store failed to delete the "{resource}" lock.', [
                'resource' => $key,
                'store' => $store,
                'exception' => $e,
            ]);
        }
    }
}

API Navigation

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