public function ConfigDistroCommands::__construct in Config Distro 8
Constructs a new ConfigSyncCommands object.
Parameters
\Drupal\Core\Config\StorageInterface $activeStorage: The active configuration storage.
\Drupal\Core\Config\StorageInterface $distroStorage: 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.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event dispatcher to tell other modules about the successful import.
File
- src/
Commands/ ConfigDistroCommands.php, line 70
Class
- ConfigDistroCommands
- Drush integration for the Configuration Synchronizer module.
Namespace
Drupal\config_distro\CommandsCode
public function __construct(StorageInterface $activeStorage, StorageInterface $distroStorage, ConfigManagerInterface $configManager, ConfigImportCommands $configImportCommands, EventDispatcherInterface $eventDispatcher) {
parent::__construct();
$this->activeStorage = $activeStorage;
$this->distroStorage = $distroStorage;
$this->configManager = $configManager;
$this->configImportCommands = $configImportCommands;
$this->eventDispatcher = $eventDispatcher;
}