You are here

public function ConfigSyncSnapshotter::__construct in Configuration Synchronizer 8.2

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

Constructs a ConfigSyncSnapshotter object.

Parameters

string $root: The app root.

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

\Drupal\Core\Config\StorageInterface $provider_storage: The provider configuration storage.

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

\Drupal\Core\Config\StorageInterface $active_storage: The active configuration store where the list of enabled modules and themes is stored.

\Drupal\config_sync\ConfigSyncListerInterface $config_sync_lister: The configuration synchronizer lister.

\Drupal\Core\Extension\ModuleExtensionList $module_extension_list: The module extension list.

File

src/ConfigSyncSnapshotter.php, line 84

Class

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

Namespace

Drupal\config_sync

Code

public function __construct($root, SyncConfigCollectorInterface $config_collector, StorageInterface $provider_storage, ConfigManagerInterface $config_manager, StorageInterface $active_storage, ConfigSyncListerInterface $config_sync_lister, ModuleExtensionList $module_extension_list) {
  $this->root = $root;
  $this->configCollector = $config_collector;
  $this->providerStorage = $provider_storage;
  $this->configManager = $config_manager;
  $this->activeStorages[$active_storage
    ->getCollectionName()] = $active_storage;
  $this->configSyncLister = $config_sync_lister;
  $this->moduleExtensionList = $module_extension_list;
}