From 8f593d91d4681e369c8769351a1f13cf91399fcf Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Thu, 7 Nov 2024 10:19:01 +0300 Subject: [PATCH] Rename "channel-definitions" to "channels" --- config/di.php | 6 +++--- config/params.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/di.php b/config/di.php index 6980d616..d4fec057 100644 --- a/config/di.php +++ b/config/di.php @@ -32,7 +32,7 @@ QueueProviderInterface::class => [ 'class' => QueueFactoryQueueProvider::class, '__construct()' => [ - 'definitions' => $params['yiisoft/queue']['channel-definitions'], + 'definitions' => $params['yiisoft/queue']['channels'], ], ], QueueWorker::class => [ @@ -61,12 +61,12 @@ MessageSerializerInterface::class => JsonMessageSerializer::class, RunCommand::class => [ '__construct()' => [ - 'channels' => array_keys($params['yiisoft/queue']['channel-definitions']), + 'channels' => array_keys($params['yiisoft/queue']['channels']), ], ], ListenAllCommand::class => [ '__construct()' => [ - 'channels' => array_keys($params['yiisoft/queue']['channel-definitions']), + 'channels' => array_keys($params['yiisoft/queue']['channels']), ], ], ]; diff --git a/config/params.php b/config/params.php index c1994af7..4ac7ccc7 100644 --- a/config/params.php +++ b/config/params.php @@ -21,7 +21,7 @@ ], 'yiisoft/queue' => [ 'handlers' => [], - 'channel-definitions' => [], + 'channels' => [], 'middlewares-push' => [], 'middlewares-consume' => [], 'middlewares-fail' => [],