MAKS\AmqpAgent\Worker\PublisherInterface::publish
Publishes a message to the default exchange on the default channel of the worker's connection to RabbitMQ server.
Signature
Parameters
$payload
—
object
- A string of the body of the message or an array of body and properties for the message or a AMQPMessage object.
$parameters
—
array
- [optional] The overrides for the default publish options of the worker.
$_channel
—
MAKS\AmqpAgent\Worker\AMQPChannel|null
- [optional] The channel that should be used instead of the default worker's channel.
Returns
- PublisherInterface