Exception when using other logging than core

Created on 3 April 2025, 12 days ago

Problem/Motivation

While installing 13.0.0-alpha22 when running the database updates, an exception occurs.

php.ERROR: TypeError: Drupal\activity_creator\Commands\CleanUpActivitiesDrushCommands::__construct(): Argument #3 ($loggerChannelFactory) must be of type Drupal\Core\Logger\LoggerChannelFactory, Drupal\monolog\Logger\MonologLoggerChannelFactory given in Drupal\activity_creator\Commands\CleanUpActivitiesDrushCommands->__construct() (line 83 of /var/www/clients/client1/web5/web/community/web/profiles/contrib/social/modules/custom/activity_creator/src/Commands/CleanUpActivitiesDrushCommands.php)

Steps to reproduce

  1. Install version 13.0.0-alpha22
  2. run Database Updates

Proposed resolution

Not rely on contrete class Drupal\Core\Logger\LoggerChannelFactory but instead the interface Drupal\Core\Logger\LoggerChannelFactoryInterface

Remaining tasks

Replace said reference.

🐛 Bug report
Status

Active

Version

13.0

Component

Code (back-end)

Created by

🇳🇱Netherlands pefferen

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

Comments & Activities

Production build 0.71.5 2024