public function PermissionsHashGenerator::__construct

public PermissionsHashGenerator::__construct(PrivateKey $private_key, CacheBackendInterface $cache, CacheBackendInterface $static)

Constructs a PermissionsHashGenerator object.

Parameters

\Drupal\Core\PrivateKey $private_key: The private key service.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend interface to use for the persistent cache.

\Drupal\Core\Cache\CacheBackendInterface: The cache backend interface to use for the static cache.

File

core/lib/Drupal/Core/Session/PermissionsHashGenerator.php, line 46

Class

PermissionsHashGenerator
Generates and caches the permissions hash for a user.

Namespace

Drupal\Core\Session

Code

public function __construct(PrivateKey $private_key, CacheBackendInterface $cache, CacheBackendInterface $static) {
  $this->privateKey = $private_key;
  $this->cache = $cache;
  $this->static = $static;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!PermissionsHashGenerator.php/function/PermissionsHashGenerator::__construct/8.1.x