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']],