public function ConfigFactory::__construct

Constructs the Config factory.

Parameters

Drupal\Core\Config\StorageInterface $storage: The storage controller object to use for reading and writing configuration data.

Symfony\Component\EventDispatcher\EventDispatcher: An event dispatcher instance to use for configuration events.

File

drupal/core/lib/Drupal/Core/Config/ConfigFactory.php, line 50
Definition of Drupal\Core\Config\ConfigFactory.

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

public function __construct(StorageInterface $storage, EventDispatcher $event_dispatcher) {
  $this->storage = $storage;
  $this->eventDispatcher = $event_dispatcher;
}