public function TfaValidationPluginManager::__construct in Two-factor Authentication (TFA) 8
Constructs a new TfaValidation plugin manager.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\Drupal\user\UserDataInterface $user_data: User data service.
\Drupal\encrypt\EncryptionProfileManagerInterface $encryption_profile_manager: Encryption profile manager.
\Drupal\encrypt\EncryptServiceInterface $encrypt_service: Encryption service.
Overrides DefaultPluginManager::__construct
File
- src/
TfaValidationPluginManager.php, line 61
Class
- TfaValidationPluginManager
- The validation plugin manager.
Namespace
Drupal\tfaCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, UserDataInterface $user_data, EncryptionProfileManagerInterface $encryption_profile_manager, EncryptServiceInterface $encrypt_service) {
parent::__construct('Plugin/TfaValidation', $namespaces, $module_handler, 'Drupal\\tfa\\Plugin\\TfaValidationInterface', 'Drupal\\tfa\\Annotation\\TfaValidation');
$this
->alterInfo('tfa_validation');
$this
->setCacheBackend($cache_backend, 'tfa_validation');
$this->userData = $user_data;
$this->encryptService = $encrypt_service;
$this->encryptionProfileManager = $encryption_profile_manager;
}