src/Driver/PeclAmqpDriver.php
public function publish($exchangeName, Message $message)
    {
        $exchange = $this->getExchange($exchangeName);
        $exchange->publish(
            $message->getBody(),
            $message->getRoutingKey(),
            AMQP_NOPARAM,
            self::getMessageProperties($message)
        );
    }
public function publish($exchangeName, Message $message)
    {
        $exchange = $this->getExchange($exchangeName);
        $exchange->publish(
            $message->getBody(),
            $message->getRoutingKey(),
            AMQP_NOPARAM,
            self::getMessageProperties($message)
        );
    }
Publish a message in the exchange

@param string  $exchangeName
@param Message $message

@return void

@throws \AMQPConnectionException
@throws \AMQPChannelException
@throws \AMQPExchangeException