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

Breadcrumb

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

function Lock::__construct

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/TempStore/Lock.php \Drupal\Core\TempStore\Lock::__construct()

Parameters

float|null $ttl Maximum expected lock duration in seconds:

bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed:

File

vendor/symfony/lock/Lock.php, line 37

Class

Lock
Lock is the default implementation of the LockInterface.

Namespace

Symfony\Component\Lock

Code

public function __construct(Key $key, PersistingStoreInterface $store, ?float $ttl = null, bool $autoRelease = true) {
}

API Navigation

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