src/PHPDish/Bundle/CoreBundle/Util/NotificationHelper.php
public function createMentionUserInPostNotification(CommentInterface $comment)
    {
        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.mention_user_post.subject', [
                '%userUrl%' => $this->router->generate('user_view', ['username' => $comment->getUser()->getUsername()]),
                '%username%' => $comment->getUser()->getUsername(),
                '%postUrl%' => $this->router->generate('post_view', ['id' => $comment->getPost()->getId()]),
                '%postTitle%' => $comment->getPost()->getTitle()
            ])
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_MENTION_USER_IN_POST,
            'post_id' => $comment->getPost()->getId(),
            'comment_id' => $comment->getId(),
            'comment_user_id' => $comment->getUser()->getId(),
            'comment_user_username' => $comment->getUser()->getUsername(),
        ]);
        return $notification;
    }
public function createMentionUserInPostNotification(CommentInterface $comment)
    {
        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.mention_user_post.subject', [
                '%userUrl%' => $this->router->generate('user_view', ['username' => $comment->getUser()->getUsername()]),
                '%username%' => $comment->getUser()->getUsername(),
                '%postUrl%' => $this->router->generate('post_view', ['id' => $comment->getPost()->getId()]),
                '%postTitle%' => $comment->getPost()->getTitle()
            ])
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_MENTION_USER_IN_POST,
            'post_id' => $comment->getPost()->getId(),
            'comment_id' => $comment->getId(),
            'comment_user_id' => $comment->getUser()->getId(),
            'comment_user_username' => $comment->getUser()->getUsername(),
        ]);
        return $notification;
    }
{@inheritdoc}