优化静态调用callback写法

This commit is contained in:
thinkphp
2015-12-27 22:38:12 +08:00
parent 92e2e25c19
commit accc680e4b
2 changed files with 6 additions and 4 deletions

View File

@@ -20,9 +20,9 @@ require CORE_PATH . 'loader.php';
Loader::register();
// 注册错误和异常处理机制
register_shutdown_function(['think\Error', 'appShutdown']);
set_error_handler(['think\Error', 'appError']);
set_exception_handler(['think\Error', 'appException']);
register_shutdown_function('think\Error::appShutdown');
set_error_handler('think\Error::appError');
set_exception_handler('think\Error::appException');
// 加载模式定义文件
$mode = require MODE_PATH . APP_MODE . EXT;