Skip to content

Commit 8987da4

Browse files
authored
fix: Add the addFunction() method to the comment(Enforcer Facade). (#31)
fix: Add the addFunction() method to the comment(Enforcer Facade).
1 parent 935c74b commit 8987da4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/facade/Enforcer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* @method static bool hasPermissionForUser(string $username, string ...$permission) 确定用户是否具有权限
2929
* @method static array getImplicitRolesForUser(string $username, string ...$domain) 获取用户具有的隐式角色
3030
* @method static array getImplicitPermissionsForUser(string $username, string ...$domain) 获取用户具有的隐式权限
31+
* @method static addFunction(string $name, \Closure $func) 添加一个自定义函数
3132
*/
3233
class Enforcer extends Facade
3334
{

0 commit comments

Comments
 (0)