Skip to content

Commit

Permalink
fix #1145
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Jan 7, 2025
1 parent 77bc8e4 commit ba3fd26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
// | Author: liu21st <[email protected]>
// +----------------------------------------------------------------------

use think\App;

// [ 应用入口文件 ]
namespace think;

require __DIR__ . '/../vendor/autoload.php';

Expand Down
5 changes: 3 additions & 2 deletions think
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env php
<?php
namespace think;

use think\App;

// 命令行入口文件
// 加载基础文件
require __DIR__ . '/vendor/autoload.php';

// 应用初始化
(new App())->console->run();
(new App())->console->run();

0 comments on commit ba3fd26

Please sign in to comment.