Cannot install Monolog with Acquia DAM enabled

Created on 16 June 2025, 28 days ago

Problem/Motivation

To be able to use the Monolog module ( https://www.drupal.org/project/monolog β†’ ) on a site which also uses the Acquia DAM module.

Steps to reproduce

composer require 'drupal/monolog:^3.0'
drush en monolog

Results in:
TypeError: Drupal\acquia_dam\AssetFileEntityHelper::__construct(): Argument #6 ($loggerChannel) must be of type Drupal\Core\Logger\LoggerChannel, Drupal\monolog\Logger\LoggerInterfacesAdapter given, called in /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in Drupal\acquia_dam\AssetFileEntityHelper->__construct() (line 114 of /var/www/html/docroot/modules/contrib/acquia_dam/src/AssetFileEntityHelper.php)

Proposed resolution

Update AssetFileEntityHelper to use LoggerChannelInferface.

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jeff.hartman

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

Comments & Activities

Production build 0.71.5 2024