You are here

public function ContentController::__construct in Content Synchronization 8.2

Same name and namespace in other branches
  1. 8 src/Controller/ContentController.php \Drupal\content_sync\Controller\ContentController::__construct()
  2. 3.0.x src/Controller/ContentController.php \Drupal\content_sync\Controller\ContentController::__construct()

Constructs a ContentController object.

Parameters

\Drupal\Core\Config\StorageInterface $target_storage: The target storage.

\Drupal\Core\Config\StorageInterface $source_storage: The source storage

\Drupal\system\FileDownloadController $file_download_controller: The file download controller.

File

src/Controller/ContentController.php, line 82

Class

ContentController
Returns responses for content module routes.

Namespace

Drupal\content_sync\Controller

Code

public function __construct(StorageInterface $target_storage, StorageInterface $source_storage, ConfigManagerInterface $content_manager, DiffFormatter $diff_formatter, FileSystemInterface $file_system) {
  $this->targetStorage = $target_storage;
  $this->sourceStorage = $source_storage;
  $this->contentManager = $content_manager;
  $this->diffFormatter = $diff_formatter;
  $this->fileSystem = $file_system;
}