You are here

public function ConfigSyncSnapshotter::__construct in Configuration Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/ConfigSyncSnapshotter.php \Drupal\config_sync\ConfigSyncSnapshotter::__construct()

Constructs a ConfigSyncSnapshotter object.

Parameters

\Drupal\config_provider\Plugin\ConfigCollectorInterface $config_collector: The config collector.

\Drupal\Core\Config\StorageInterface $active_storage: The active storage.

\Drupal\Core\Config\StorageInterface $snapshot_extension_storage: The snapshot storage for the items from the extension storage.

\Drupal\Core\Config\StorageInterface $snapshot_active_storage: The snapshot storage for the items from the active storage.

\Drupal\Core\Config\ConfigManagerInterface $config_manager: The configuration manager.

File

src/ConfigSyncSnapshotter.php, line 66

Class

ConfigSyncSnapshotter
The ConfigSyncSnapshotter provides helper functions for taking snapshots of extension-provided configuration.

Namespace

Drupal\config_sync

Code

public function __construct(ConfigCollectorInterface $config_collector, StorageInterface $active_storage, StorageInterface $snapshot_extension_storage, StorageInterface $snapshot_active_storage, ConfigManagerInterface $config_manager) {
  $this->configCollector = $config_collector;
  $this->activeStorage = $active_storage;
  $this->snapshotExtensionStorage = $snapshot_extension_storage;
  $this->snapshotActiveStorage = $snapshot_active_storage;
  $this->configManager = $config_manager;
}