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 9
9
10
10
An authorization library that supports access control models like ACL, RBAC, ABAC for webman plugin
11
11
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
19
13
20
14
``` sh
21
15
composer require -W casbin/webman-permission
22
16
```
23
17
24
- ## 使用
18
+ ## Configuration
25
19
26
- ### 1. 依赖注入配置
20
+ ### 1. DI Configuration
27
21
28
- 修改配置 ` config/container.php ` ,其最终内容如下 :
22
+ ` config/container.php ` :
29
23
30
24
``` php
31
25
$builder = new \DI\ContainerBuilder();
@@ -34,7 +28,7 @@ $builder->useAutowiring(true);
34
28
return $builder->build();
35
29
```
36
30
37
- ### 2. 数据库配置
31
+ ### 2. database
38
32
39
33
> 默认策略存储是使用的ThinkORM。
40
34
> 如使用 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