Ddd\Infrastructure\Application\Notification\RabbitMqMessageProducer::send PHP Method

send() public method

public send ( $exchangeName, string $notificationMessage, string $notificationType, integer $notificationId, DateTime $notificationOccurredOn )
$exchangeName
$notificationMessage string
$notificationType string
$notificationId integer
$notificationOccurredOn DateTime
    public function send($exchangeName, $notificationMessage, $notificationType, $notificationId, \DateTime $notificationOccurredOn)
    {
        $this->channel($exchangeName)->basic_publish(new AMQPMessage($notificationMessage, ['type' => $notificationType, 'timestamp' => $notificationOccurredOn->getTimestamp(), 'message_id' => $notificationId]), $exchangeName);
    }
RabbitMqMessageProducer