We register our RedisConnectionFactory under the class name Enqueue\Redis\RedisConnectionFactory. This will help Ecotone resolve it automatically, without any additional configuration.
Now orders channel will be available in Messaging System.
Message Channel Configuration
RedisBackedMessageChannelBuilder::create("orders")->withAutoDeclare(false)// do not auto declare queue->withDefaultTimeToLive(1000)// limit TTL of messages
Message Publisher
If you want to publish Message directly to Exchange, you may use of Publisher.
Provides Consumer that will be registered at given name "orders_consumer" and will be polling "orders" queue
Consumer Configuration
$consumerConfiguration =RedisMessageConsumerConfiguration::createDirectExchange->withDeclareOnStartup(false)// do not try to declare queue before consuming first message;