Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #3505673 by joshua1234511, richardgaunt, jezrsh, fionamorrison23: ArgumentCountError when using content provisioning functiong #1332

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions web/themes/contrib/civictheme/src/CivicthemeConfigImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
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\Logger\LoggerChannelInterface;
Expand Down Expand Up @@ -68,10 +69,12 @@ final class CivicthemeConfigImporter implements ContainerInjectionInterface {
* The messenger.
* @param \Drupal\Core\Logger\LoggerChannelInterface $logger
* The logger.
* @param \Drupal\Core\Extension\ThemeExtensionList $themeExtensionList
* The theme extension list.
*
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(protected EventDispatcherInterface $eventDispatcher, protected ConfigManagerInterface $configManager, protected LockBackendInterface $lockPersistent, protected TypedConfigManagerInterface $typedConfigManager, protected ModuleHandlerInterface $moduleHandler, protected ModuleInstallerInterface $moduleInstaller, protected ThemeHandlerInterface $themeHandler, protected TranslationInterface $stringTranslation, protected ModuleExtensionList $moduleExtensionList, protected StorageInterface $configStorage, protected CacheBackendInterface $cacheConfig, protected MessengerInterface $messenger, protected LoggerChannelInterface $logger) {
public function __construct(protected EventDispatcherInterface $eventDispatcher, protected ConfigManagerInterface $configManager, protected LockBackendInterface $lockPersistent, protected TypedConfigManagerInterface $typedConfigManager, protected ModuleHandlerInterface $moduleHandler, protected ModuleInstallerInterface $moduleInstaller, protected ThemeHandlerInterface $themeHandler, protected TranslationInterface $stringTranslation, protected ModuleExtensionList $moduleExtensionList, protected StorageInterface $configStorage, protected CacheBackendInterface $cacheConfig, protected MessengerInterface $messenger, protected LoggerChannelInterface $logger, protected ThemeExtensionList $themeExtensionList) {
}

/**
Expand All @@ -91,7 +94,8 @@ public static function create(ContainerInterface $container): self {
$container->get('config.storage'),
$container->get('cache.config'),
$container->get('messenger'),
$container->get('logger.factory')->get(CivicthemeConfigImporter::class)
$container->get('logger.factory')->get(CivicthemeConfigImporter::class),
$container->get('extension.list.theme')
);
}

Expand Down Expand Up @@ -157,7 +161,8 @@ public function importSingleConfig(string $src_name, $locations, $dst_name = NUL
$this->moduleInstaller,
$this->themeHandler,
$this->stringTranslation,
$this->moduleExtensionList
$this->moduleExtensionList,
$this->themeExtensionList
);

try {
Expand Down