DatabaseLockBackend::__construct

public DatabaseLockBackend::__construct(Connection $database)

Constructs a new DatabaseLockBackend.

Parameters

\Drupal\Core\Database\Connection $database: The database connection.

File

core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 34

Class

DatabaseLockBackend
Defines the database lock backend. This is the default backend in Drupal.

Namespace

Drupal\Core\Lock

Code

public function __construct(Connection $database) {
  // __destruct() is causing problems with garbage collections, register a
  // shutdown function instead.
  drupal_register_shutdown_function(array($this, 'releaseAll'));
  $this->database = $database;
}
doc_Drupal
2016-10-29 08:59:47
Comments
Leave a Comment

Please login to continue.