Problem/Motivation

The number of arguments being passed to `ConfigImporter` needs to be updated to 11 for Drupal 11.

 [error]  ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /app/web/modules/contrib/config_devel/src/ConfigImporterExporter.php on line 199 and exactly 11 expected in Drupal\Core\Config\ConfigImporter->__construct() (line 204 of /app/web/core/lib/Drupal/Core/Config/ConfigImporter.php) #0 /app/web/modules/contrib/config_devel/src/ConfigImporterExporter.php(199): Drupal\Core\Config\ConfigImporter->__construct()
#1 /app/web/modules/contrib/config_devel/src/Commands/ConfigDevelCommands.php(248): Drupal\config_devel\ConfigImporterExporter->importConfig()
#2 /app/web/modules/contrib/config_devel/src/Commands/ConfigDevelCommands.php(432): Drupal\config_devel\Commands\ConfigDevelCommands->importSingle()
#3 /app/web/modules/contrib/config_devel/src/Commands/ConfigDevelCommands.php(204): Drupal\config_devel\Commands\ConfigDevelCommands->importConfig()

See here:
https://git.drupalcode.org/project/config_devel/-/blob/8.x-1.x/src/Confi...

https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...

Steps to reproduce

1. Attempt to run `drush cdi `
2. Note the error

Proposed resolution

1. Update to match the new constructor requirements.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

richardgaunt created an issue. See original summary.

richardgaunt’s picture

Status: Active » Needs review
andyg5000’s picture

Priority: Normal » Major
andyg5000’s picture

I updated the MR to include the missing `use` statement. Seem to be working now.

  • joachim committed 0a217baf on 8.x-1.x authored by richardgaunt
    fix: #3541617 add missing parameter to ConfigImporter needed on Drupal...
joachim’s picture

Status: Needs review » Fixed

Committed. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.