This commit is contained in:
as2252258@163.com
2021-09-05 15:49:25 +08:00
parent cec0404b1f
commit 0116fb2e51
+2
View File
@@ -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');
}