src/PHPDish/Bundle/CoreBundle/EventListener/Notification/PostSubscriber.php
public function onCommentVoted(VoteCommentEvent $event)
    {
        //自己点赞自己不用通知
        if ($event->getComment()->getUser() === $event->getVoter()) {
            return;
        }
        $this->notificationHelper->createVoteCommentNotification(
            $event->getPost(),
            $event->getComment(),
            $event->getVoter()
        );
    }
public function onCommentVoted(VoteCommentEvent $event)
    {
        //自己点赞自己不用通知
        if ($event->getComment()->getUser() === $event->getVoter()) {
            return;
        }
        $this->notificationHelper->createVoteCommentNotification(
            $event->getPost(),
            $event->getComment(),
            $event->getVoter()
        );
    }
评论被点赞时触发.

@param VoteCommentEvent $event