ConfigController
class ConfigController implements ContainerInjectionInterface (View source)
Returns responses for config module routes.
Properties
| protected StorageInterface | $targetStorage | The target storage. |
|
| protected StorageInterface | $syncStorage | The sync storage. |
|
| protected ImportStorageTransformer | $importTransformer | The import transformer service. |
|
| protected ConfigManagerInterface | $configManager | The configuration manager. |
|
| protected StorageInterface | $exportStorage | The export storage. |
|
| protected FileDownloadController | $fileDownloadController | The file download controller. |
|
| protected DiffFormatter | $diffFormatter | The diff formatter. |
|
| protected FileSystemInterface | $fileSystem | The file system. |
Methods
Instantiates a new instance of this class.
Constructs a ConfigController object.
Downloads a tarball of the site configuration.
Shows diff of specified configuration file.
Details
static
create(ContainerInterface $container)
Instantiates a new instance of this class.
This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.
__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)
Constructs a ConfigController object.
downloadExport()
Downloads a tarball of the site configuration.
array
diff(string $source_name, string $target_name = NULL, string $collection = NULL)
Shows diff of specified configuration file.