From 0116fb2e511737ab1d3520fc1783bbea4c0a9e54 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 5 Sep 2021 15:49:25 +0800 Subject: [PATCH] 111 --- core/Application.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Application.php b/core/Application.php index bbf0c22c..b07bed4b 100644 --- a/core/Application.php +++ b/core/Application.php @@ -21,6 +21,7 @@ use Kiri\Crontab\CrontabProviders; use Kiri\Exception\NotFindClassException; use Kiri\FileListen\FileChangeCustomProcess; use ReflectionException; +use Server\Events\OnBeforeCommandExecute; use Server\ResponseInterface; use Server\ServerCommand; use Server\ServerProviders; @@ -238,6 +239,7 @@ class Application extends BaseApplication */ private function enableFileChange(Command $class, $input, $output): void { + fire(new OnBeforeCommandExecute()); if (!($class instanceof ServerCommand)) { scan_directory(directory('app'), 'App'); }