Skip to content
Snippets Groups Projects
Commit fa99d124 authored by Roman Paska's avatar Roman Paska Committed by Oleh Vehera
Browse files

Issue #3482167 by taran2l, voleger: Add a BC layer for service argument change

parent 160807a2
Branches
Tags 3.2.1
1 merge request!56Add a BC layer for the @queue_ui.batch service
Pipeline #317946 passed
......@@ -47,8 +47,15 @@ class QueueUIBatch implements QueueUIBatchInterface {
protected ModuleHandlerInterface $moduleHandler,
protected MessengerInterface $messenger,
protected mixed $queueFactory,
protected LoggerChannelFactoryInterface $logger,
) {}
protected ?LoggerChannelFactoryInterface $logger = NULL,
) {
if (is_null($logger)) {
@trigger_error('Calling ' . __METHOD__ . '() without the $logger argument is deprecated in queue_ui:3.2.0 and will be required in queue_ui:4.0.0. See https://www.drupal.org/node/3482168', E_USER_DEPRECATED);
// @phpstan-ignore-next-line
$this->logger = \Drupal::service('logger.factory');
}
}
/**
* {@inheritdoc}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment