src/PHPDish/Bundle/CoreBundle/Util/NotificationHelper.php
public function sendNotification($participant, $notification)
    {
        $participants = is_array($participant) ? $participant : [$participant];
        $this->notificationManager->sendNotification($participants, $notification, true);
    }
public function sendNotification($participant, $notification)
    {
        $participants = is_array($participant) ? $participant : [$participant];
        $this->notificationManager->sendNotification($participants, $notification, true);
    }
发送消息

@param UserInterface[]|UserInterface $participant
@param $notification