start.php调整 和 App::run 分离 便于在入口文件动态注册命名空间

This commit is contained in:
thinkphp
2016-01-19 22:07:13 +08:00
parent 874c252732
commit 3bb84e14b7

View File

@@ -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();
}
}