ソースを参照

added business transact method

develop
Robin Thoni 9年前
コミット
fe848d4e56
1個のファイルの変更9行の追加0行の削除
  1. 9
    0
      src/Utils/Business/LuBusiness.php

+ 9
- 0
src/Utils/Business/LuBusiness.php ファイルの表示

34
         throw new LuBusinessException($reason, 400);
34
         throw new LuBusinessException($reason, 400);
35
     }
35
     }
36
 
36
 
37
+    /**
38
+     * @param \Closure $function
39
+     * @return mixed
40
+     */
41
+    public static function transact(\Closure $function)
42
+    {
43
+        return static::getDataAccess()->transact($function);
44
+    }
45
+
37
     /**
46
     /**
38
      * @param $id int
47
      * @param $id int
39
      * @return LuDbo
48
      * @return LuDbo

読み込み中…
キャンセル
保存