You are here

public function SecretInfo::__construct in Lockr 8.4

Same name and namespace in other branches
  1. 8.3 src/SecretInfo.php \Drupal\lockr\SecretInfo::__construct()
  2. 4.x src/SecretInfo.php \Drupal\lockr\SecretInfo::__construct()

Constructs a new settings factory.

Parameters

ConfigFactoryInterface $config_factory: The simple config factory.

EntityTypeManagerInterface $entity_type_manager: The entity type manager.

KeyRepositoryInterface $key_repository: The key respository.

File

src/SecretInfo.php, line 40

Class

SecretInfo
SecretInfo implements secret info for Lockr secrets.

Namespace

Drupal\lockr

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, KeyRepositoryInterface $key_repository) {
  $this->configFactory = $config_factory;
  $this->secretStorage = $entity_type_manager
    ->getStorage('lockr_secret');
  $this->keyRepository = $key_repository;
}