Use LoggerChannelFactoryInterface in the ModuleInstaller

Created on 6 June 2024, 5 months ago
Updated 25 June 2024, 5 months ago

Problem/Motivation

Installing the redirect_404 contrib module (from the redirect project) generates an error.

TypeError: Drupal\civicrm_entity\ModuleInstaller::__construct(): Argument #7 ($logger_factory) must be of type Drupal\Core\Logger\LoggerChannelFactory, Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in .../core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\civicrm_entity\ModuleInstaller->__construct() (line 28 of .../civicrm_entity/src/ModuleInstaller.php).

Steps to reproduce

  1. Install redirect_404 (or any other module that decorates logger.factory)
  2. Navigate to /admin/modules or /admin/modules/uninstall.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States collinhaines

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

Comments & Activities

Production build 0.71.5 2024