You are here

public function KeyValueFactory::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php \Drupal\Core\KeyValueStore\KeyValueFactory::__construct()

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.

array $options: (optional) Collection-specific storage override options.

File

core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 53

Class

KeyValueFactory
Defines the key/value store factory.

Namespace

Drupal\Core\KeyValueStore

Code

public function __construct(ContainerInterface $container, array $options = []) {
  $this->container = $container;
  $this->options = $options;
}