Argument @domain.negotiator missing in domain.services.yml

Created on 6 October 2024, 3 months ago

Drupal Version

10.3.2

Domain module version

2.0.0-beta2

Expected Behavior

Runing drupal cache update should succeed

Actual Behavior

It fails because a newly introducted parameter for DomainRouteProvider is missing in

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Drupal\domain\Routing\DomainRouteProvider::__construct(), 8 passed in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and exactly 9 expected in /app/web/modules/contrib/domain/domain/src/Routing/DomainRouteProvider.php:48
Stack trace:
#0 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(261): Drupal\domain\Routing\DomainRouteProvider->__construct(Object(Drupal\mysql\Driver\Database\mysql\Connection), Object(Drupal\Core\State\State), Object(Drupal\Core\Path\CurrentPathStack), Object(Drupal\Core\Cache\DatabaseBackend), Object(Drupal\Core\PathProcessor\PathProcessorManager), Object(Drupal\Core\Cache\CacheTagsInvalidator), 'router', Object(Drupal\language\ConfigurableLanguageManager))
#1 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(179): Drupal\Component\DependencyInjection\Container->createService(Array, 'domain.route_pr...')
#2 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(438): Drupal\Component\DependencyInjection\Container->get('domain.route_pr...', 1)
#3 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(239): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#4 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(453): Drupal\Component\DependencyInjection\Container->createService(Array, 'private__qoryc3...')
#5 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(239): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#6 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(179): Drupal\Component\DependencyInjection\Container->createService(Array, 'url_generator')
#7 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(438): Drupal\Component\DependencyInjection\Container->get('url_generator', 1)
#8 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(239): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#9 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(179): Drupal\Component\DependencyInjection\Container->createService(Array, 'twig.extension')
#10 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(438): Drupal\Component\DependencyInjection\Container->get('twig.extension', 1)
#11 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(275): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#12 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(179): Drupal\Component\DependencyInjection\Container->createService(Array, 'twig')
#13 /app/web/core/lib/Drupal.php(197): Drupal\Component\DependencyInjection\Container->get('twig')
#14 /app/web/core/includes/common.inc(457): Drupal::service('twig')
#15 /app/web/core/includes/utility.inc(41): drupal_flush_all_caches(Object(Drupal\Core\DrupalKernel))
#16 /app/vendor/drush/drush/src/Commands/core/CacheRebuildCommands.php(70): drupal_rebuild(Object(Composer\Autoload\ClassLoader), Object(Symfony\Component\HttpFoundation\Request))
#17 [internal function]: Drush\Commands\core\CacheRebuildCommands->rebuild(Array)
#18 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#19 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#20 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#21 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#22 /app/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /app/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /app/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /app/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 /app/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#27 /app/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#28 /app/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#29 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#30 /app/vendor/bin/drush(119): include('/app/vendor/dru...')
#31 {main}
thrown in /app/web/modules/contrib/domain/domain/src/Routing/DomainRouteProvider.php on line 48
[warning] Drush command terminated abnormally.

Steps to reproduce

Reproduced that with a dataset running in wild. Only had to upgrade my test system to domain 2.0.0-beta2 and run to run into the issue.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024