Przeglądaj źródła

读取配置在queue.connections.rabbitmq

visuddhinanda 11 miesięcy temu
rodzic
commit
29aad4d5a3

+ 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();