- Issue created by @fhebert
I' have purge 3.6 installed. When I run drush pm:install on another module a bug is reported.
drush version is 11.5.1.
ArgumentCountError: Too few arguments to function Drupal\purge_queuer_coretags\CacheTagsQueuer::__construct(), 0 passed in /srv/www/htdocs/nfs/preprod.ehess.dev/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 1 expected in Drupal\purge_queuer_coretags\CacheTagsQueuer->__construct()
I look in the purge_queuer_coretags.services.yml file of the submodule and we have
services:
purge_queuer_coretags.queuer:
class: Drupal\purge_queuer_coretags\CacheTagsQueuer
tags:
- { name: cache_tags_invalidator }
arguments: ['@service_container']
and in the service code src/CacheTagsQueuer.php at the __construct()
method :
/**
* Construct the Cache Tags Queuer.
*
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
* The container service.
*/
public function __construct(ContainerInterface $container) {
$this->container = $container;
}
Why the service is badly instantiated?
Active
3.6
Code