Skip to content

Commit c324645

Browse files
authored
connectors: add custom worker check
1 parent 2ca7a40 commit c324645

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Queue/Connectors/RabbitMQConnector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ public function connect(array $config): Queue
8585

8686
return new HorizonRabbitMQQueue($context, $config);
8787
}
88+
89+
if (class_exists($worker)) {
90+
return new $worker($context, $config);
91+
}
8892

8993
throw new InvalidArgumentException('Invalid worker.');
9094
}

0 commit comments

Comments
 (0)