public function 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

drupal/core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php, line 42
Contains \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber.

Class

ConfigSnapshotSubscriber
Create a snapshot when config is imported.

Namespace

Drupal\Core\EventSubscriber

Code

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