File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 99
1010An authorization library that supports access control models like ACL, RBAC, ABAC for webman plugin
1111
12- ## 依赖
13-
14- - [ ThinkORM] ( https://www.workerman.net/doc/webman/db/others.html ) (默认)
15- - [ PHP-DI] ( https://github.com/PHP-DI/PHP-DI )
16- - [ illuminate/database] ( https://www.workerman.net/doc/webman/db/tutorial.html ) (可选)
17-
18- ## 安装
12+ ## Installation
1913
2014``` sh
2115composer require -W casbin/webman-permission
2216```
2317
24- ## 使用
18+ ## Configuration
2519
26- ### 1. 依赖注入配置
20+ ### 1. DI Configuration
2721
28- 修改配置 ` config/container.php ` ,其最终内容如下 :
22+ ` config/container.php ` :
2923
3024``` php
3125$builder = new \DI\ContainerBuilder();
@@ -34,7 +28,7 @@ $builder->useAutowiring(true);
3428return $builder->build();
3529```
3630
37- ### 2. 数据库配置
31+ ### 2. database
3832
3933> 默认策略存储是使用的ThinkORM。
4034> 如使用 laravel的数据库 [ illuminate/database] ( https://github.com/illuminate/database ) ,请按照官方文档按照相应的依赖包:https://www.workerman.net/doc/webman/db/tutorial.html
You can’t perform that action at this time.
0 commit comments