src/PHPDish/Bundle/CoreBundle/Util/NotificationHelper.php
public function createFollowUserNotification(UserInterface $follower)
    {
        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.follow_user.subject', [
                '%username%' => $follower->getUsername(),
                '%url%' => $this->router->generate('user_view', ['username' => $follower->getUsername()])
            ])
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_FOLLOW_USER,
            'follower_id' => $follower->getId(),
            'follower_username' => $follower->getUsername(),
        ]);
        return $notification;
    }
public function createFollowUserNotification(UserInterface $follower)
    {
        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.follow_user.subject', [
                '%username%' => $follower->getUsername(),
                '%url%' => $this->router->generate('user_view', ['username' => $follower->getUsername()])
            ])
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_FOLLOW_USER,
            'follower_id' => $follower->getId(),
            'follower_username' => $follower->getUsername(),
        ]);
        return $notification;
    }
{@inheritdoc}