{{wikiTitle}}
执行函数工具
复制链接
编辑文档
执行函数工具,和钩子函数有相同的作用。暂时用于支付回调时调用不同的方法来使用;不建议大量使用,可用event来代替。
内置方法
执行挂载方法
public function listen(string $hookName, ...$arguments)
使用方法
use crmeb\utils\Hook;
use app\services\pay\PayNotifyServices;
$parmes = [];
new Hook(PayNotifyServices::class,'wechat')->listen('success', $parmes);
评论({{cateWiki.comment_num}})
最新
最早
{{cateWiki.page_view_num}}人看过该文档
评论(0)
最新
最早
481人看过
登录/注册
即可发表评论
{{item.user ? item.user.nickname : ''}}
(自评)
{{item.content}}
搜索结果
为您找到{{wikiCount}}条结果
{{item.page_view_num}}
{{item.like ? item.like.like_num : 0}}
{{item.comment ? item.comment.comment_num : 0}}
位置:
{{path.name}}
{{(i+1) == getCataloguePathData(item.catalogue).length ? '':'/'}}
