RabbitMqService
in package
Table of Contents
Properties
- $connection : AMQPStreamConnection
- $container : mixed
Methods
- __construct() : mixed
- __destruct() : mixed
- cleanUpConnection() : mixed
- connect() : mixed
- getConnection() : AbstractChannel|AMQPChannel
- publishMessage() : mixed
- Publish message
Properties
$connection
private
AMQPStreamConnection
$connection
$container
private
mixed
$container
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
__destruct()
public
__destruct() : mixed
cleanUpConnection()
public
cleanUpConnection() : mixed
connect()
public
connect() : mixed
getConnection()
public
getConnection() : AbstractChannel|AMQPChannel
Return values
AbstractChannel|AMQPChannelpublishMessage()
Publish message
public
publishMessage(mixed $message, mixed $topic[, string $exchange = 'magento' ]) : mixed
Parameters
- $message : mixed
- $topic : mixed
- $exchange : string = 'magento'