Skip to content
Snippets Groups Projects

3501573 - Fix missing argument for ConfigImporter

2 files
+ 15
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -14,6 +14,7 @@ use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Extension\ModuleExtensionList;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Extension\ModuleInstallerInterface;
use Drupal\Core\Extension\ThemeExtensionList;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Lock\LockBackendInterface;
use Drupal\Core\StringTranslation\TranslationInterface;
@@ -99,6 +100,13 @@ class ConfigImportSingleCommands extends DrushCommands {
*/
private $extensionListModule;
/**
* The theme extension list.
*
* @var \Drupal\Core\Extension\ThemeExtensionList
*/
protected $themeExtensionList;
/**
* Config factory.
*
@@ -129,10 +137,12 @@ class ConfigImportSingleCommands extends DrushCommands {
* String Translation.
* @param \Drupal\Core\Extension\ModuleExtensionList $extensionListModule
* Extension list module.
* @param \Drupal\Core\Extension\ThemeExtensionList $extension_list_theme
* The theme extension list.
* @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
* Config factory.
*/
public function __construct(StorageInterface $storage, EventDispatcherInterface $eventDispatcher, ConfigManagerInterface $configManager, LockBackendInterface $lock, TypedConfigManagerInterface $configTyped, ModuleHandlerInterface $moduleHandler, ModuleInstallerInterface $moduleInstaller, ThemeHandlerInterface $themeHandler, TranslationInterface $stringTranslation, ModuleExtensionList $extensionListModule, ConfigFactoryInterface $configFactory) {
public function __construct(StorageInterface $storage, EventDispatcherInterface $eventDispatcher, ConfigManagerInterface $configManager, LockBackendInterface $lock, TypedConfigManagerInterface $configTyped, ModuleHandlerInterface $moduleHandler, ModuleInstallerInterface $moduleInstaller, ThemeHandlerInterface $themeHandler, TranslationInterface $stringTranslation, ModuleExtensionList $extensionListModule, ThemeExtensionList $extension_list_theme, ConfigFactoryInterface $configFactory) {
parent::__construct();
$this->storage = $storage;
$this->eventDispatcher = $eventDispatcher;
@@ -144,6 +154,7 @@ class ConfigImportSingleCommands extends DrushCommands {
$this->themeHandler = $themeHandler;
$this->stringTranslation = $stringTranslation;
$this->extensionListModule = $extensionListModule;
$this->themeExtensionList = $extension_list_theme;
$this->configFactory = $configFactory;
}
@@ -216,7 +227,8 @@ class ConfigImportSingleCommands extends DrushCommands {
$this->moduleInstaller,
$this->themeHandler,
$this->stringTranslation,
$this->extensionListModule
$this->extensionListModule,
$this->themeExtensionList
);
if ($configImporter->alreadyImporting()) {
Loading