فهرست منبع

读取配置在queue.connections.rabbitmq

visuddhinanda 11 ماه پیش
والد
کامیت
29aad4d5a3
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      api-v8/app/Console/Commands/ProcessDeadLetterQueue.php

+ 2 - 2
api-v8/app/Console/Commands/ProcessDeadLetterQueue.php

@@ -30,13 +30,13 @@ class ProcessDeadLetterQueue extends Command
         $requeue = $this->option('requeue');
         $delete = $this->option('delete');
 
-        $config = config('rabbitmq.connection');
+        $config = config('queue.connections.rabbitmq');
         $connection = new AMQPStreamConnection(
             $config['host'],
             $config['port'],
             $config['user'],
             $config['password'],
-            $config['vhost']
+            $config['virtual_host']
         );
 
         $channel = $connection->channel();