Skip to content

Commit 1bc233e

Browse files
authored
Merge pull request #11 from houaiai/main
Update README.md
2 parents 145e562 + 66bf987 commit 1bc233e

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,17 @@
99

1010
An 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
2115
composer 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);
3428
return $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

0 commit comments

Comments
 (0)