From c7d603201090fb18cc640aa37e6fd73cc2f35ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 17:45:53 +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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kiri-engine/Abstracts/BaseApplication.php b/kiri-engine/Abstracts/BaseApplication.php index fbdcf069..febf869a 100644 --- a/kiri-engine/Abstracts/BaseApplication.php +++ b/kiri-engine/Abstracts/BaseApplication.php @@ -14,6 +14,7 @@ use Annotation\Annotation as SAnnotation; use Database\Connection; use Exception; use Http\Handler\Router; +use Kiri\Events\OnBeforeCommandExecute; use Server\Server; use Kafka\KafkaProvider; use Kiri\Async; @@ -239,6 +240,10 @@ abstract class BaseApplication extends Component return; } + if ($key == OnBeforeCommandExecute::class){ + var_dump($value); + } + foreach ($value as $item) { if (!is_callable($item, true)) { throw new InitException("Class does not hav callback.");