Ddd\Application\Notification\NotificationService::publish PHP Method

publish() private method

private publish ( $exchangeName, StoredEvent $notification, Ddd\Application\Notification\MessageProducer $messageProducer )
$notification Ddd\Domain\Event\StoredEvent
$messageProducer Ddd\Application\Notification\MessageProducer
    private function publish($exchangeName, StoredEvent $notification, MessageProducer $messageProducer)
    {
        $messageProducer->send($exchangeName, $this->serializer()->serialize($notification, 'json'), $notification->typeName(), $notification->eventId(), $notification->occurredOn());
        return $notification;
    }