Forum\Controller\Notification\SaveController::doSave PHP Method

doSave() protected method

doSave
protected doSave ( Windwalker\Data\Data $data ) : void
$data Windwalker\Data\Data
return void
    protected function doSave(Data $data)
    {
        $user = User::get();
        if (!$user->isMember()) {
            throw new ValidFailException('User not login');
        }
        Notification::addNotification($data->type, $data->target_id, $user->id);
    }