You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class RabbitMQConnector implements ConnectorInterface
@@ -20,7 +21,14 @@ class RabbitMQConnector implements ConnectorInterface
20
21
*/
21
22
publicfunctionconnect(array$config): Queue
22
23
{
23
-
$factory = newAmqpConnectionFactory([
24
+
$factoryClass = $config['factory_class'];
25
+
if (false == class_exists($factoryClass) || false == (new \ReflectionClass($factoryClass))->implementsInterface(InteropAmqpConnectionFactory::class)) {
26
+
thrownew \LogicException(sprintf('The factory_class option has to be valid class that implements "%s"', InteropAmqpConnectionFactory::class));
0 commit comments