From ba3fd26219aef20b8a5eeecfe1e8c5fc2db8ff3f Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Tue, 7 Jan 2025 15:24:51 +0800 Subject: [PATCH] fix #1145 --- public/index.php | 3 ++- think | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/index.php b/public/index.php index e3c0fe908..c3b7842f1 100644 --- a/public/index.php +++ b/public/index.php @@ -9,8 +9,9 @@ // | Author: liu21st // +---------------------------------------------------------------------- +use think\App; + // [ 应用入口文件 ] -namespace think; require __DIR__ . '/../vendor/autoload.php'; diff --git a/think b/think index 2429d223a..979ac3585 100644 --- a/think +++ b/think @@ -1,10 +1,11 @@ #!/usr/bin/env php console->run(); \ No newline at end of file +(new App())->console->run();