forked from top-think/think
-
Notifications
You must be signed in to change notification settings - Fork 0
/
console
21 lines (18 loc) · 816 Bytes
/
console
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env php
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <[email protected]>
// +----------------------------------------------------------------------
// 定义项目路径
define('APP_PATH', './application/');
define('APP_AUTO_RUN', false);
// 加载框架引导文件
require './thinkphp/start.php';
\think\App::initCommon();
\think\Console::init();