Skip to content

Commit

Permalink
升级think-addons
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobo.sun committed Dec 26, 2016
1 parent a206995 commit c145caf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ The ThinkPHP5 Addons Package
> composer require 5ini99/think-addons
## 配置
> 配置文件位于 application/extra/addons.php
### 公共配置
```
return [
'addons'=>[
// 可以定义多个钩子
'testhook'=>'test' // 键为钩子名称,用于在业务中自定义钩子处理,值为实现该钩子的插件,
// 多个插件可以用数组也可以用逗号分割
Expand All @@ -32,7 +31,7 @@ return [
<?php
namespace addons\test; // 注意命名空间规范
use think\Addons;
use think\addons\Addons;
/**
* 插件测试
Expand Down Expand Up @@ -189,12 +188,3 @@ tp5
- vendor
- public
```


<font color=red>升级注意事项:</font>

> addons `1.2.0``1.3.0`时需要将原插件继承的 `\think\addons\Addons` 修改为 `\think\Addons` 即可
如果有其它问题可加QQ群 438811382 进行讨论

点击链接加入群【<a href="https://jq.qq.com/?_wv=1027&k=42nNACM">Web开发兴趣小组</a>】:<a href="https://jq.qq.com/?_wv=1027&k=42nNACM">https://jq.qq.com/?_wv=1027&k=42nNACM</a>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage": "https://github.com/5ini99/think-addons",
"license": "Apache-2.0",
"minimum-stability": "stable",
"version": "1.3.0",
"version": "2.0.0",
"authors": [
{
"name": "xiaobo.sun",
Expand Down

0 comments on commit c145caf

Please sign in to comment.