function ConfigController::__construct
Same name in other branches
- 8.9.x core/modules/config/src/Controller/ConfigController.php \Drupal\config\Controller\ConfigController::__construct()
- 10 core/modules/config/src/Controller/ConfigController.php \Drupal\config\Controller\ConfigController::__construct()
- 11.x core/modules/config/src/Controller/ConfigController.php \Drupal\config\Controller\ConfigController::__construct()
Constructs a ConfigController object.
Parameters
\Drupal\Core\Config\StorageInterface $target_storage: The target storage.
\Drupal\Core\Config\StorageInterface $sync_storage: The sync storage.
\Drupal\Core\Config\ConfigManagerInterface $config_manager: The config manager.
\Drupal\system\FileDownloadController $file_download_controller: The file download controller.
\Drupal\Core\Diff\DiffFormatter $diff_formatter: The diff formatter.
\Drupal\Core\File\FileSystemInterface $file_system: The file system.
\Drupal\Core\Config\StorageInterface $export_storage: The export storage.
\Drupal\Core\Config\ImportStorageTransformer $import_transformer: The import transformer service.
File
-
core/
modules/ config/ src/ Controller/ ConfigController.php, line 116
Class
- ConfigController
- Returns responses for config module routes.
Namespace
Drupal\config\ControllerCode
public function __construct(StorageInterface $target_storage, StorageInterface $sync_storage, ConfigManagerInterface $config_manager, FileDownloadController $file_download_controller, DiffFormatter $diff_formatter, FileSystemInterface $file_system, StorageInterface $export_storage, ImportStorageTransformer $import_transformer) {
$this->targetStorage = $target_storage;
$this->syncStorage = $sync_storage;
$this->configManager = $config_manager;
$this->fileDownloadController = $file_download_controller;
$this->diffFormatter = $diff_formatter;
$this->fileSystem = $file_system;
$this->exportStorage = $export_storage;
$this->importTransformer = $import_transformer;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.