File tree 1 file changed +8
-0
lines changed 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 21
21
use Enqueue \Fs \Symfony \FsTransportFactory ;
22
22
use Enqueue \Gps \GpsConnectionFactory ;
23
23
use Enqueue \Gps \Symfony \GpsTransportFactory ;
24
+ use Enqueue \RdKafka \RdKafkaConnectionFactory ;
25
+ use Enqueue \RdKafka \Symfony \RdKafkaTransportFactory ;
24
26
use Enqueue \Redis \RedisConnectionFactory ;
25
27
use Enqueue \Redis \Symfony \RedisTransportFactory ;
26
28
use Enqueue \Sqs \SqsConnectionFactory ;
@@ -104,6 +106,12 @@ class_exists(AmqpLibConnectionFactory::class)
104
106
$ extension ->setTransportFactory (new MissingTransportFactory ('gps ' , ['enqueue/gps ' ]));
105
107
}
106
108
109
+ if (class_exists (RdKafkaConnectionFactory::class)) {
110
+ $ extension ->setTransportFactory (new RdKafkaTransportFactory ('rdkafka ' ));
111
+ } else {
112
+ $ extension ->setTransportFactory (new MissingTransportFactory ('rdkafka ' , ['enqueue/rdkafka ' ]));
113
+ }
114
+
107
115
$ container ->addCompilerPass (new AsyncEventsPass (), PassConfig::TYPE_BEFORE_OPTIMIZATION , 100 );
108
116
$ container ->addCompilerPass (new AsyncTransformersPass (), PassConfig::TYPE_BEFORE_OPTIMIZATION , 100 );
109
117
}
You can’t perform that action at this time.
0 commit comments