Forum\Controller\Notification\DeleteController::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::removeNotification($data->type, $data->target_id, $user->id);
    }