src/PHPDish/Bundle/CoreBundle/EventListener/Notification/TopicSubscriber.php
public function onReplyVoted(VoteReplyEvent $event)
    {
        //自己点赞自己不用通知
        if ($event->getReply()->getUser() === $event->getVoter()) {
            return;
        }
        $notification = $this->notificationHelper->createVoteReplyNotification(
            $event->getTopic(),
            $event->getReply(),
            $event->getVoter()
        );

        $this->notificationHelper->sendNotification($event->getReply()->getUser(), $notification);
    }
public function onReplyVoted(VoteReplyEvent $event)
    {
        //自己点赞自己不用通知
        if ($event->getReply()->getUser() === $event->getVoter()) {
            return;
        }
        $notification = $this->notificationHelper->createVoteReplyNotification(
            $event->getTopic(),
            $event->getReply(),
            $event->getVoter()
        );

        $this->notificationHelper->sendNotification($event->getReply()->getUser(), $notification);
    }
回复被点赞时触发.

@param VoteReplyEvent $event