-
Notifications
You must be signed in to change notification settings - Fork 0
/
think
36 lines (28 loc) · 1.08 KB
/
think
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env php
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 老猫 <[email protected]>
// +----------------------------------------------------------------------
namespace think;
// 调试模式开关
define("APP_DEBUG", true);
// 定义CMF根目录,可更改此目录
define('CMF_ROOT', __DIR__ . '/');
// 定义CMF数据目录,可更改此目录
define('CMF_DATA', CMF_ROOT . 'data/');
// 定义网站入口目录
define('WEB_ROOT', __DIR__ . '/public/');
// 定义应用目录
define('APP_PATH', CMF_ROOT . 'app/');
// 定义缓存目录
define('RUNTIME_PATH', CMF_ROOT . 'data/runtime_cli/');
// 加载基础文件
require __DIR__ . '/vendor/thinkphp/base.php';
// 应用初始化
Container::get('app', [APP_PATH])->initialize();
// 控制台初始化
Console::init();