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

Breadcrumb

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

function FlockStore::delete

Overrides PersistingStoreInterface::delete

File

vendor/symfony/lock/Store/FlockStore.php, line 128

Class

FlockStore
FlockStore is a PersistingStoreInterface implementation using the FileSystem flock.

Namespace

Symfony\Component\Lock\Store

Code

public function delete(Key $key) : void {
    // The lock is maybe not acquired.
    if (!$key->hasState(__CLASS__)) {
        return;
    }
    $handle = $key->getState(__CLASS__)[1];
    flock($handle, \LOCK_UN | \LOCK_NB);
    fclose($handle);
    $key->removeState(__CLASS__);
}

API Navigation

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