You are here

public function GroupPermissionsHashGenerator::__construct in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Access/GroupPermissionsHashGenerator.php \Drupal\group\Access\GroupPermissionsHashGenerator::__construct()

Constructs a GroupPermissionsHashGenerator object.

Parameters

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

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

\Drupal\group\Access\GroupPermissionCalculatorInterface $permission_calculator: The group permission calculator.

File

src/Access/GroupPermissionsHashGenerator.php, line 48

Class

GroupPermissionsHashGenerator
Generates and caches the permissions hash for a group membership.

Namespace

Drupal\group\Access

Code

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