- Issue created by @RichardGaunt
- Merge request !13Updated instance creation of ConfigImporter to match updated service arguments. → (Open) created by RichardGaunt
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...
1. Attempt to run `drush cdi `
2. Note the error
1. Update to match the new constructor requirements.
Active
1.0
Code