We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ca7a40 commit 3f8969fCopy full SHA for 3f8969f
src/Queue/Connectors/RabbitMQConnector.php
@@ -86,6 +86,10 @@ public function connect(array $config): Queue
86
return new HorizonRabbitMQQueue($context, $config);
87
}
88
89
+ if($worker instanceof RabbitMQQueue) {
90
+ return new $worker($context, $config);
91
+ }
92
+
93
throw new InvalidArgumentException('Invalid worker.');
94
95
0 commit comments