mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
start.php调整 和 App::run 分离 便于在入口文件动态注册命名空间
This commit is contained in:
10
start.php
10
start.php
@@ -46,13 +46,3 @@ if (APP_HOOK && isset($mode['tags'])) {
|
||||
if (APP_AUTO_BUILD && is_file(APP_PATH . 'build.php')) {
|
||||
Build::run(include APP_PATH . 'build.php');
|
||||
}
|
||||
if (isset($mode['run'])) {
|
||||
call_user_func($mode['run']);
|
||||
} else {
|
||||
if (IN_UNIT_TEST) {
|
||||
Loader::addNamespace('tests', TEST_PATH);
|
||||
} else {
|
||||
// 执行应用
|
||||
App::run();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user