优化Loader,使用Loader::addNamespace()简化核心路径判断;

调整Error::register()位置,通过alias配置别名提高Error类加载速度。
This commit is contained in:
huangdijia
2016-02-05 13:32:43 +08:00
parent c0e6918711
commit ac5e6b2258
5 changed files with 33 additions and 10 deletions

View File

@@ -96,4 +96,12 @@ return [
'think\template\driver\Sae' => CORE_PATH . 'template' . DS . 'driver' . DS . 'Sae' . EXT,
],
// 命名空间
'namespace' => [
'think' => LIB_PATH . 'think' . DS,
'behavior' => LIB_PATH . 'behavior' . DS,
'traits' => LIB_PATH . 'traits' . DS,
APP_NAMESPACE => APP_PATH,
],
];