You are here

public function ConfigSyncCommands::__construct in Configuration Synchronizer 8

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

Constructs a new ConfigSyncCommands object.

Parameters

\Drupal\config_sync\ConfigSyncListerInterface $configSyncLister: The config synchronisation lister service.

\Drupal\config_sync\ConfigSyncInitializerInterface $configSyncInitializer: The config synchronization initializer service.

\Drupal\Core\Config\StorageInterface $activeStorage: The active configuration storage.

\Drupal\Core\Config\StorageInterface $mergedStorage: The merged storage.

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

\Drush\Drupal\Commands\config\ConfigImportCommands $configImportCommands: The service containing Drush commands for regular core config imports.

\Drupal\config_sync\ConfigSyncSnapshotterInterface $configSyncSnapshotter: The config snapshotter service.

File

src/Commands/ConfigSyncCommands.php, line 89

Class

ConfigSyncCommands
Drush integration for the Configuration Synchronizer module.

Namespace

Drupal\config_sync\Commands

Code

public function __construct(ConfigSyncListerInterface $configSyncLister, ConfigSyncInitializerInterface $configSyncInitializer, StorageInterface $activeStorage, StorageInterface $mergedStorage, ConfigManagerInterface $configManager, ConfigImportCommands $configImportCommands, ConfigSyncSnapshotterInterface $configSyncSnapshotter) {
  parent::__construct();
  $this->configSyncLister = $configSyncLister;
  $this->configSyncInitializer = $configSyncInitializer;
  $this->activeStorage = $activeStorage;
  $this->mergedStorage = $mergedStorage;
  $this->configManager = $configManager;
  $this->configImportCommands = $configImportCommands;
  $this->configSyncSnapshotter = $configSyncSnapshotter;
}