Skip to content

Commit be0f7b7

Browse files
authored
Merge pull request #3 from houaiai/patch-1
解除 https://github.com/PHP-DI/PHP-DI依赖的解决方案(不推荐)
2 parents 13a321d + d4e4d43 commit be0f7b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ if (Permission::enforce("eve", "articles", "edit")) {
110110

111111
[Casbin](https://github.com/php-casbin/php-casbin),你可以查看全部文档在其 [官网](https://casbin.org/) 上。
112112

113-
## ~~解除 [PHP-DI](https://github.com/PHP-DI/PHP-DI) 依赖的解决方案(不推荐)~~
113+
<details>
114+
115+
<summary> 解除 https://github.com/PHP-DI/PHP-DI依赖的解决方案(不推荐)</summary>
114116

115117
1、卸载DI依赖包:`composer remove php-di/php-di`
116118

@@ -133,3 +135,4 @@ if (is_null(static::$_manager)) {
133135
}
134136
```
135137
耦合太高,不建议这么搞,更多了解:https://www.workerman.net/doc/webman/di.html
138+
</details>

0 commit comments

Comments
 (0)