public function ConfigSnapshotSubscriber::__construct

public ConfigSnapshotSubscriber::__construct(ConfigManagerInterface $config_manager, StorageInterface $source_storage, StorageInterface $snapshot_storage)

Constructs the ConfigSnapshotSubscriber object.

Parameters

StorageInterface $source_storage: The source storage used to discover configuration changes.

StorageInterface $snapshot_storage: The snapshot storage used to write configuration changes.

File

core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php, line 45

Class

ConfigSnapshotSubscriber
Create a snapshot when config is imported.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(ConfigManagerInterface $config_manager, StorageInterface $source_storage, StorageInterface $snapshot_storage) {
  $this->configManager = $config_manager;
  $this->sourceStorage = $source_storage;
  $this->snapshotStorage = $snapshot_storage;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!ConfigSnapshotSubscriber.php/function/ConfigSnapshotSubscriber::__construct/8.1.x