You are here

public function LockrKeyProvider::__construct in Lockr 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/KeyProvider/LockrKeyProvider.php \Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider::__construct()
  2. 8.2 src/Plugin/KeyProvider/LockrKeyProvider.php \Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider::__construct()
  3. 4.x src/Plugin/KeyProvider/LockrKeyProvider.php \Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider::__construct()

Constructs a new LockrKeyProvider.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

ConfigFactoryInterface $config_factory: The simple config factory.

Lockr $lockr: The Lockr library client.

LoggerChannelInterface $logger: The lockr Drupal logger channel.

Overrides KeyPluginBase::__construct

File

src/Plugin/KeyProvider/LockrKeyProvider.php, line 77
Contains Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider.

Class

LockrKeyProvider
Adds a key provider that allows a key to be stored in Lockr.

Namespace

Drupal\lockr\Plugin\KeyProvider

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, Lockr $lockr, LoggerChannelInterface $logger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $config_factory;
  $this->lockr = $lockr;
  $this->logger = $logger;
}