-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart
More file actions
26 lines (23 loc) · 1.03 KB
/
start
File metadata and controls
26 lines (23 loc) · 1.03 KB
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
#!/usr/bin/env php
<?php
// +----------------------------------------------------------------------
// | phpth|phpy: msg-server
// +----------------------------------------------------------------------
// | Copyright (c) 2018
// +----------------------------------------------------------------------
// | Licensed MIT
// +----------------------------------------------------------------------
// | Author: luajia
// +----------------------------------------------------------------------
// | Date: 2018/9/27 0027
// +----------------------------------------------------------------------
// | Time: 下午 20:52
// +----------------------------------------------------------------------
define ( 'ROOT_PATH' , __DIR__ . '/' );
define ( 'CLI' , stripos ( PHP_SAPI , 'cli' ) !== false );
define ( 'CONFIG_FILE' , ROOT_PATH . 'common/conf.php' );
define ( 'TMP_PATH' , ROOT_PATH . 'tmp/' );
define ( 'APP_NAME' , 'app' );
require ROOT_PATH . 'bin/app.php';
// 'bin\mode\cli' 是指定运行模式的类
print_r ( \bin\app ::start ( 'bin\mode\cli' ) );