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

Breadcrumb

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

function Lock::__destruct

Automatically releases the underlying lock when the object is destructed.

File

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

Class

Lock
Lock is the default implementation of the LockInterface.

Namespace

Symfony\Component\Lock

Code

public function __destruct() {
    if (!$this->autoRelease || !$this->dirty || !$this->isAcquired()) {
        return;
    }
    $this->release();
}

API Navigation

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