Add a BC layer for service argument change

Created on 21 October 2024, 6 months ago

Problem/Motivation

Whenever service arguments are changed, a BC layer is needed to avoid fatal errors like

ArgumentCountError: Too few arguments to function Drupal\queue_ui\QueueUIBatch::__construct(), 4 passed in /core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and exactly 5 expected in Drupal\queue_ui\QueueUIBatch->__construct() (line 45 of /queue_ui/src/QueueUIBatch.php)

Steps to reproduce

Update the module

Proposed resolution

Add a BC layer

Remaining tasks

Review a patch

User interface changes

None

API changes

The @queue_ui.batch service constructor now requires @logger.factory as its 5th parameter

Data model changes

None

πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Taran2L Lviv

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024