From 1cc44381eff171a5ccba27807e559ea7ed56e60a Mon Sep 17 00:00:00 2001 From: viktorprogger Date: Sun, 8 Dec 2024 00:13:55 +0500 Subject: [PATCH] Fix config --- config/di.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/di.php b/config/di.php index 6e1867d5..b9b28033 100644 --- a/config/di.php +++ b/config/di.php @@ -29,12 +29,12 @@ /* @var array $params */ return [ - QueueProviderInterface::class => [ - 'class' => AdapterFactoryQueueProvider::class, + AdapterFactoryQueueProvider::class => [ '__construct()' => [ 'definitions' => $params['yiisoft/queue']['channels'], ], ], + QueueProviderInterface::class => AdapterFactoryQueueProvider::class, QueueWorker::class => [ 'class' => QueueWorker::class, '__construct()' => [$params['yiisoft/queue']['handlers']],