From 1ff9beadb96349abf767c3d9ca9c871d5c23cf23 Mon Sep 17 00:00:00 2001 From: Haotong Lin Date: Fri, 18 Dec 2015 15:36:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dempty=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E9=92=A9=E5=AD=90=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/app.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/app.php b/library/think/app.php index 6e8e5b8c..ee13a340 100644 --- a/library/think/app.php +++ b/library/think/app.php @@ -127,6 +127,8 @@ class App if (method_exists($instance, '_empty')) { $method = new \ReflectionMethod($instance, '_empty'); $data = $method->invokeArgs($instance, [$action, '']); + // 操作方法执行完成监听 + APP_HOOK && Hook::listen('action_end', $data); // 返回数据 if (defined('IN_UNIT_TEST')) { return $data;