- Issue created by @zach.bimson
As of `3.x` the `ConnectionFactory` service is dynamically registered via `RabbitmqServiceProvider` per set of credentials set under `rabbitmq_credentials` in the settings file. (e.g rabbitmq.connection.factory.default)
This is unnecessary and almost defeats the point of having this be a factory class.
N/A
For `5.x` implement a generic statically defined `rabbitmq.connection.factory` that can be used by all `QueueFactory` instantiations.
To achieve this we need to do a couple of things.
- Deprecate `ConnectionFactory::getConnection` which will be done as part of a minor release to `3.x` https://git.drupalcode.org/project/rabbitmq/-/merge_requests/44
- Create a `QueueFactoryFactory` to produce each dynamically registered `QueueFactory`. This allows us to stay inline with the core queue API expectations and means we can pass our connection object directly into each instantiation.
Work being undertaken here: https://git.drupalcode.org/project/rabbitmq/-/merge_requests/43
None
CR here: https://www.drupal.org/node/3419104 →
Active
5.0
Code