src/PHPDish/Bundle/CoreBundle/Util/NotificationHelper.php
public function createVotePostNotification(PostInterface $post, UserInterface $user)
    {
        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.vote_post.subject', [
                '%userUrl%' => $this->router->generate('user_view', ['username' => $user->getUsername()]),
                '%username%' => $user->getUsername(),
                '%postUrl%' => $this->router->generate('post_view', ['id'=>$post->getId()]),
                '%postTitle%' => $post->getTitle()
            ])
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_VOTE_POST,
            'post_id' => $post->getId(),
            'voter_id' => $user->getId(),
            'voter_username' => $user->getUsername(),
        ]);

        return $notification;
    }
public function createVotePostNotification(PostInterface $post, UserInterface $user)
    {
        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.vote_post.subject', [
                '%userUrl%' => $this->router->generate('user_view', ['username' => $user->getUsername()]),
                '%username%' => $user->getUsername(),
                '%postUrl%' => $this->router->generate('post_view', ['id'=>$post->getId()]),
                '%postTitle%' => $post->getTitle()
            ])
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_VOTE_POST,
            'post_id' => $post->getId(),
            'voter_id' => $user->getId(),
            'voter_username' => $user->getUsername(),
        ]);

        return $notification;
    }
{@inheritdoc}