You are here

public function ConfigSnapshotSubscriber::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber::__construct()

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 50
Contains \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber.

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;
}