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.");