public function EncryptService::__construct in Encrypt 8.3
Parameters
\Drupal\encrypt\EncryptionMethodManager $encrypt_manager: The EncryptionMethod plugin manager.
\Drupal\key\KeyRepositoryInterface $key_repository: The KeyRepository.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
File
- src/
EncryptService.php, line 48
Class
- EncryptService
- Class EncryptService.
Namespace
Drupal\encryptCode
public function __construct(EncryptionMethodManager $encrypt_manager, KeyRepositoryInterface $key_repository, ConfigFactoryInterface $config_factory = NULL) {
$this->encryptManager = $encrypt_manager;
$this->keyRepository = $key_repository;
$this->configFactory = $config_factory ?: \Drupal::configFactory();
}