public function SecretInfo::__construct in Lockr 4.x
Same name and namespace in other branches
- 8.4 src/SecretInfo.php \Drupal\lockr\SecretInfo::__construct()
- 8.3 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\lockrCode
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;
}