mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修复empty操作钩子监听
This commit is contained in:
@@ -127,6 +127,8 @@ class App
|
|||||||
if (method_exists($instance, '_empty')) {
|
if (method_exists($instance, '_empty')) {
|
||||||
$method = new \ReflectionMethod($instance, '_empty');
|
$method = new \ReflectionMethod($instance, '_empty');
|
||||||
$data = $method->invokeArgs($instance, [$action, '']);
|
$data = $method->invokeArgs($instance, [$action, '']);
|
||||||
|
// 操作方法执行完成监听
|
||||||
|
APP_HOOK && Hook::listen('action_end', $data);
|
||||||
// 返回数据
|
// 返回数据
|
||||||
if (defined('IN_UNIT_TEST')) {
|
if (defined('IN_UNIT_TEST')) {
|
||||||
return $data;
|
return $data;
|
||||||
|
|||||||
Reference in New Issue
Block a user