src/PHPDish/Bundle/CoreBundle/EventListener/Notification/PostSubscriber.php
public function onUserMentioned(CommentMentionUserEvent $event)
    {
        foreach ($event->getMentionedUsers() as $user) {
            if (
                $event->getComment()->getUser() === $user
                || $event->getComment()->getPost()->getUser() === $user
            ) {
                continue;
            }
            $this->notificationHelper->createMentionUserInPostNotification($event->getComment());
        }
    }
public function onUserMentioned(CommentMentionUserEvent $event)
    {
        foreach ($event->getMentionedUsers() as $user) {
            if (
                $event->getComment()->getUser() === $user
                || $event->getComment()->getPost()->getUser() === $user
            ) {
                continue;
            }
            $this->notificationHelper->createMentionUserInPostNotification($event->getComment());
        }
    }
当用户在文章评论中被提及.

@param CommentMentionUserEvent $event