You are here

public function ContentSyncCommands::__construct in Content Synchronization 3.0.x

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

ContentSyncCommands constructor.

Parameters

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

\Drupal\Core\Config\StorageInterface $contentStorage: The contentStorage.

\Drupal\Core\Config\StorageInterface $contentStorageSync: The contentStorageSync.

\Drupal\content_sync\ContentSyncManagerInterface $contentSyncManager: The contentSyncManager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entityTypeManager.

\Drupal\content_sync\Exporter\ContentExporterInterface $content_exporter: The contentExporter.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The moduleHandler.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: The eventDispatcher.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock.

\Drupal\Core\Config\TypedConfigManagerInterface $configTyped: The configTyped.

\Drupal\Core\Extension\ModuleInstallerInterface $moduleInstaller: The moduleInstaller.

\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler: The themeHandler.

\Drupal\Core\StringTranslation\TranslationInterface $stringTranslation: The stringTranslation.

File

src/Commands/ContentSyncCommands.php, line 156

Class

ContentSyncCommands
A Drush commandfile.

Namespace

Drupal\content_sync\Commands

Code

public function __construct(ConfigManagerInterface $configManager, StorageInterface $contentStorage, StorageInterface $contentStorageSync, ContentSyncManagerInterface $contentSyncManager, EntityTypeManagerInterface $entity_type_manager, ContentExporterInterface $content_exporter, ModuleHandlerInterface $moduleHandler, EventDispatcherInterface $eventDispatcher, LockBackendInterface $lock, TypedConfigManagerInterface $configTyped, ModuleInstallerInterface $moduleInstaller, ThemeHandlerInterface $themeHandler, TranslationInterface $stringTranslation) {
  parent::__construct();
  $this->configManager = $configManager;
  $this->contentStorage = $contentStorage;
  $this->contentStorageSync = $contentStorageSync;
  $this->contentSyncManager = $contentSyncManager;
  $this->entityTypeManager = $entity_type_manager;
  $this->contentExporter = $content_exporter;
  $this->moduleHandler = $moduleHandler;
  $this->eventDispatcher = $eventDispatcher;
  $this->lock = $lock;
  $this->configTyped = $configTyped;
  $this->moduleInstaller = $moduleInstaller;
  $this->themeHandler = $themeHandler;
  $this->stringTranslation = $stringTranslation;
}