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();