MAKS\AmqpAgent\Worker\PublisherInterface::exchange
Declares an exchange on the default channel of the worker's connection to RabbitMQ server.
Signature
public function exchange([array
$parameters = NULL,
[AMQPChannel
$_channel = NULL]] )
Parameters
$parameters
—
array
- [optional] The overrides for the default exchange 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