Skip to content

Commit 13a321d

Browse files
committed
composer remove php-di/php-di
1 parent 5362b06 commit 13a321d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,15 @@ if (Permission::enforce("eve", "articles", "edit")) {
106106

107107
更多 `API` 参考 [Casbin API](https://casbin.org/docs/en/management-api)
108108

109-
## 其他
109+
## 感谢
110+
111+
[Casbin](https://github.com/php-casbin/php-casbin),你可以查看全部文档在其 [官网](https://casbin.org/) 上。
112+
113+
## ~~解除 [PHP-DI](https://github.com/PHP-DI/PHP-DI) 依赖的解决方案(不推荐)~~
114+
115+
1、卸载DI依赖包:`composer remove php-di/php-di`
110116

111-
解除 [PHP-DI](https://github.com/PHP-DI/PHP-DI) 依赖的解决方案
117+
2、修改:`Casbin\WebmanPermission\Permission` 文件
112118

113119
```php
114120
if (is_null(static::$_manager)) {
@@ -127,7 +133,3 @@ if (is_null(static::$_manager)) {
127133
}
128134
```
129135
耦合太高,不建议这么搞,更多了解:https://www.workerman.net/doc/webman/di.html
130-
131-
## 感谢
132-
133-
[Casbin](https://github.com/php-casbin/php-casbin),你可以查看全部文档在其 [官网](https://casbin.org/) 上。

0 commit comments

Comments
 (0)