class ConfigImportCommands extends DrushCommands (View source)

Traits

ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Properties

protected ConfigManagerInterface $configManager
protected $configStorage
protected $configStorageSync
protected $eventDispatcher
protected $lock
protected $configTyped
protected $moduleInstaller
protected $themeHandler
protected $stringTranslation
protected $importStorageTransformer
protected ModuleHandlerInterface $moduleHandler

Methods

getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct(ConfigManagerInterface $configManager, StorageInterface $configStorage, StorageInterface $configStorageSync, ModuleHandlerInterface $moduleHandler, EventDispatcherInterface $eventDispatcher, LockBackendInterface $lock, TypedConfigManagerInterface $configTyped, ModuleInstallerInterface $moduleInstaller, ThemeHandlerInterface $themeHandler, TranslationInterface $stringTranslation)

No description

LoggerInterface
logger()

Returns a logger object.

io()

Override Robo's IO function with our custom style.

printFile(string $file)

Print the contents of a file.

ConfigManagerInterface
getConfigManager()

No description

StorageInterface
getConfigStorage()

No description

StorageInterface
getConfigStorageSync()

No description

getModuleHandler()

No description

EventDispatcherInterface
getEventDispatcher()

No description

LockBackendInterface
getLock()

No description

TypedConfigManagerInterface
getConfigTyped()

No description

ModuleInstallerInterface
getModuleInstaller()

No description

ThemeHandlerInterface
getThemeHandler()

No description

TranslationInterface
getStringTranslation()

No description

setImportTransformer(ImportStorageTransformer $importStorageTransformer)

No description

bool
hasImportTransformer()

No description

ImportStorageTransformer
getImportTransformer()

No description

import($label = null, $options = ['preview' => 'list', 'source' => self::REQ, 'partial' => false, 'diff' => false])

Import config from a config directory.

doImport($storage_comparer)

No description

CommandError|null
validate(CommandData $commandData)

No description

Details

DrushConfig getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct(ConfigManagerInterface $configManager, StorageInterface $configStorage, StorageInterface $configStorageSync, ModuleHandlerInterface $moduleHandler, EventDispatcherInterface $eventDispatcher, LockBackendInterface $lock, TypedConfigManagerInterface $configTyped, ModuleInstallerInterface $moduleInstaller, ThemeHandlerInterface $themeHandler, TranslationInterface $stringTranslation)

Parameters

ConfigManagerInterface $configManager
StorageInterface $configStorage
StorageInterface $configStorageSync
ModuleHandlerInterface $moduleHandler
EventDispatcherInterface $eventDispatcher
LockBackendInterface $lock
TypedConfigManagerInterface $configTyped
ModuleInstallerInterface $moduleInstaller
ThemeHandlerInterface $themeHandler
TranslationInterface $stringTranslation

protected LoggerInterface logger()

Returns a logger object.

Return Value

LoggerInterface

protected io()

Override Robo's IO function with our custom style.

protected printFile(string $file)

Print the contents of a file.

Parameters

string $file Full path to a file.

ConfigManagerInterface getConfigManager()

Return Value

ConfigManagerInterface

StorageInterface getConfigStorage()

Return Value

StorageInterface

StorageInterface getConfigStorageSync()

Return Value

StorageInterface

getModuleHandler()

EventDispatcherInterface getEventDispatcher()

Return Value

EventDispatcherInterface

LockBackendInterface getLock()

Return Value

LockBackendInterface

TypedConfigManagerInterface getConfigTyped()

Return Value

TypedConfigManagerInterface

ModuleInstallerInterface getModuleInstaller()

Return Value

ModuleInstallerInterface

ThemeHandlerInterface getThemeHandler()

Return Value

ThemeHandlerInterface

TranslationInterface getStringTranslation()

Return Value

TranslationInterface

setImportTransformer(ImportStorageTransformer $importStorageTransformer)

Parameters

ImportStorageTransformer $importStorageTransformer

bool hasImportTransformer()

Return Value

bool

ImportStorageTransformer getImportTransformer()

Return Value

ImportStorageTransformer

import($label = null, $options = ['preview' => 'list', 'source' => self::REQ, 'partial' => false, 'diff' => false])

Import config from a config directory.

Parameters

$label
$options

doImport($storage_comparer)

Parameters

$storage_comparer

CommandError|null validate(CommandData $commandData)

Parameters

CommandData $commandData

Return Value

CommandError|null