function TempStoreFactory::__construct

Constructs a Drupal\user\TempStoreFactory object.

Parameters

Drupal\Core\Database\Connection $connection: The connection object used for this data.

Drupal\Core\Lock\LockBackendInterface $lockBackend: The lock object used for this data.

File

drupal/core/modules/user/lib/Drupal/user/TempStoreFactory.php, line 41
Definition of Drupal\user\TempStoreFactory.

Class

TempStoreFactory
Creates a key/value storage object for the current user or anonymous session.

Namespace

Drupal\user

Code

function __construct(Connection $connection, LockBackendInterface $lockBackend) {
  $this->connection = $connection;
  $this->lockBackend = $lockBackend;
}