Problem/Motivation
[error] TypeError: Drupal\Core\Extension\ModuleInstaller::__construct(): Argument #4 ($connection) must be of type Drupal\Core\Database\Connection, Drupal\Core\ProxyClass\Routing\RouteBuilder given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in Drupal\Core\Extension\ModuleInstaller->__construct() (line 92 of /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php) #0 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(261): Drupal\Core\Extension\ModuleInstaller->__construct('/var/www/html/w...', Object(Drupal\Core\Extension\ModuleHandler), Object(Drush\Drupal\DrupalKernel), Object(Drupal\Core\ProxyClass\Routing\RouteBuilder))
Steps to reproduce
Try to config import to enable a blacklisted module while the module is enabled.
Proposed resolution
Update the module_blacklist.module_installer service to be compatible with core's.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3554218-3.patch | 521 bytes | manuel garcia |
Comments
Comment #2
manuel garcia commentedComment #3
manuel garcia commentedComment #4
manuel garcia commented