src/PHPDish/Bundle/CoreBundle/Util/NotificationHelper.php
public function createReplyTopicNotification(TopicInterface $topic, ReplyInterface $reply)
    {
        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.reply_topic.subject', [
                '%userUrl%' => $this->router->generate('user_view', ['username' => $reply->getUser()->getUsername()]),
                '%username%' =>$reply->getUser()->getUsername(),
                '%topicUrl%' => $this->router->generate('topic_view', ['id' => $topic->getId()]),
                '%topicTitle%' => $topic->getTitle()
            ]),
            $reply->getBody()
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_REPLY_TOPIC,
            'topic_id' => $topic->getId(),
            'reply_id' => $reply->getId(),
            'reply_user_id' => $reply->getUser()->getId(),
            'reply_user_username' => $reply->getUser()->getUsername(),
        ]);
        return $notification;
    }
public function createReplyTopicNotification(TopicInterface $topic, ReplyInterface $reply)
    {
        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.reply_topic.subject', [
                '%userUrl%' => $this->router->generate('user_view', ['username' => $reply->getUser()->getUsername()]),
                '%username%' =>$reply->getUser()->getUsername(),
                '%topicUrl%' => $this->router->generate('topic_view', ['id' => $topic->getId()]),
                '%topicTitle%' => $topic->getTitle()
            ]),
            $reply->getBody()
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_REPLY_TOPIC,
            'topic_id' => $topic->getId(),
            'reply_id' => $reply->getId(),
            'reply_user_id' => $reply->getUser()->getId(),
            'reply_user_username' => $reply->getUser()->getUsername(),
        ]);
        return $notification;
    }
{@inheritdoc}