From 7561bacda5c021dd3b904694fbf9570976c64f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 17:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Abstracts/BaseApplication.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kiri-engine/Abstracts/BaseApplication.php b/kiri-engine/Abstracts/BaseApplication.php index febf869a..8bd10eea 100644 --- a/kiri-engine/Abstracts/BaseApplication.php +++ b/kiri-engine/Abstracts/BaseApplication.php @@ -228,6 +228,11 @@ abstract class BaseApplication extends Component $eventProvider->on($key, $value, 0); return; } + + + if ($key == OnBeforeCommandExecute::class){ + var_dump($value); + } if (is_array($value)) { if (is_object($value[0]) && !($value[0] instanceof \Closure)) { $eventProvider->on($key, $value, 0); @@ -240,9 +245,6 @@ abstract class BaseApplication extends Component return; } - if ($key == OnBeforeCommandExecute::class){ - var_dump($value); - } foreach ($value as $item) { if (!is_callable($item, true)) {