src/PHPDish/Bundle/CoreBundle/EventListener/Notification/PostSubscriber.php
public function onPostVoted(VotePostEvent $event)
    {
        if ($event->getPost()->getUser() === $event->getVoter()) {
            return;
        }

        $this->notificationHelper
            ->createVotePostNotification($event->getPost(), $event->getVoter());
    }
public function onPostVoted(VotePostEvent $event)
    {
        if ($event->getPost()->getUser() === $event->getVoter()) {
            return;
        }

        $this->notificationHelper
            ->createVotePostNotification($event->getPost(), $event->getVoter());
    }
文章被点赞触发.

@param VotePostEvent $event