PHP Class Wallabag\ImportBundle\Redis\Producer
It allow us to use the same way to publish a message between RabbitMQ & Redis: publish().
It implements the ProducerInterface of RabbitMQ (yes it's ugly) so we can have the same
kind of class which implements the same interface.
So we can inject either a RabbitMQ producer or a Redis producer with the same signature
Show file
Open project: wallabag/wallabag
Public Methods
Method |
Description |
|
__construct ( Simpleue\Queue\RedisQueue $queue ) |
|
|
publish ( string $msgBody, string $routingKey = '', array $additionalProperties = [] ) |
Publish a message in the Redis queue. |
|
Method Details
__construct()
public method
public __construct ( Simpleue\Queue\RedisQueue $queue ) |
$queue |
Simpleue\Queue\RedisQueue |
|
Publish a message in the Redis queue.