public function KeyProvider::__construct in Entity Share 8.3
KeyService constructor.
Parameters
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value store to use.
File
- modules/
entity_share_client/ src/ Service/ KeyProvider.php, line 39
Class
- KeyProvider
- Abstraction layer to support local storage and Key module.
Namespace
Drupal\entity_share_client\ServiceCode
public function __construct(KeyValueFactoryInterface $key_value_factory) {
$this->keyValueStore = $key_value_factory
->get(ClientAuthorizationInterface::LOCAL_STORAGE_KEY_VALUE_COLLECTION);
}