You are here

function KeyValueFactory::__construct in Service Container 7.2

Same name and namespace in other branches
  1. 7 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

lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 58
Contains \Drupal\Core\KeyValueStore\KeyValueFactory.

Class

KeyValueFactory
Defines the key/value store factory.

Namespace

Drupal\Core\KeyValueStore

Code

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