Skip to content

Commit

Permalink
fix: Add the addFunction() method to the comment(Enforcer Facade). (#31)
Browse files Browse the repository at this point in the history
fix: Add the addFunction() method to the comment(Enforcer Facade).
  • Loading branch information
Tinywan authored Nov 2, 2021
1 parent 935c74b commit 8987da4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/facade/Enforcer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* @method static bool hasPermissionForUser(string $username, string ...$permission) 确定用户是否具有权限
* @method static array getImplicitRolesForUser(string $username, string ...$domain) 获取用户具有的隐式角色
* @method static array getImplicitPermissionsForUser(string $username, string ...$domain) 获取用户具有的隐式权限
* @method static addFunction(string $name, \Closure $func) 添加一个自定义函数
*/
class Enforcer extends Facade
{
Expand Down

0 comments on commit 8987da4

Please sign in to comment.