支持入口文件中使用 BIND_MODULE常量的方式绑定模块

This commit is contained in:
thinkphp
2016-08-23 12:27:02 +08:00
parent 62db503259
commit 69b62af4ec

View File

@@ -81,7 +81,7 @@ class App
$config = self::initCommon();
if (defined('BIND_MODULE')) {
// 模块/控制器绑定
Route::bind(BIND_MODULE);
BIND_MODULE && Route::bind(BIND_MODULE);
} elseif ($config['auto_bind_module']) {
// 入口自动绑定
$name = pathinfo($request->baseFile(), PATHINFO_FILENAME);