src/PHPDish/Bundle/CoreBundle/EventListener/Notification/TopicSubscriber.php
public function onUserMentioned(ReplyMentionUserEvent $event)
    {
        //不能艾特自己, 不能艾特楼主，楼主本身就会收到消息
        $author = $event->getReply()->getUser();
        $maintainer = $event->getReply()->getTopic()->getUser();

        $participants = array_filter($event->getMentionedUsers(), function($user) use ($author, $maintainer){
            return $user !== $author && $user !== $maintainer;
        });
        $notification = $this->notificationHelper->createMentionUserInTopicNotification($event->getReply());

        $this->notificationHelper->sendNotification($participants, $notification);
    }
public function onUserMentioned(ReplyMentionUserEvent $event)
    {
        //不能艾特自己, 不能艾特楼主，楼主本身就会收到消息
        $author = $event->getReply()->getUser();
        $maintainer = $event->getReply()->getTopic()->getUser();

        $participants = array_filter($event->getMentionedUsers(), function($user) use ($author, $maintainer){
            return $user !== $author && $user !== $maintainer;
        });
        $notification = $this->notificationHelper->createMentionUserInTopicNotification($event->getReply());

        $this->notificationHelper->sendNotification($participants, $notification);
    }
当用户在话题回复中被提及.

@param ReplyMentionUserEvent $event