mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正console模式
This commit is contained in:
@@ -21,9 +21,22 @@ return [
|
||||
'traits' => LIB_PATH . 'traits' . DS,
|
||||
APP_NAMESPACE => APP_PATH,
|
||||
],
|
||||
|
||||
'config' => [
|
||||
'commands' => [],
|
||||
// 别名定义
|
||||
'alias' => [
|
||||
'think\Error' => MODE_PATH . 'console/Error' . EXT,
|
||||
],
|
||||
// 配置文件
|
||||
'config' => [
|
||||
'log' => [
|
||||
'type' => 'File', // 支持 file socket trace sae
|
||||
'path' => LOG_PATH,
|
||||
],
|
||||
'cache' => [
|
||||
'type' => 'File',
|
||||
'path' => CACHE_PATH,
|
||||
'prefix' => '',
|
||||
'expire' => 0,
|
||||
]
|
||||
]
|
||||
|
||||
];
|
||||
|
||||
25
mode/console/Error.php
Normal file
25
mode/console/Error.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: yunwuxin <448901948@qq.com>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace think;
|
||||
|
||||
class Error
|
||||
{
|
||||
/**
|
||||
* 注册异常处理
|
||||
* @return void
|
||||
*/
|
||||
public static function register()
|
||||
{
|
||||
ini_set("display_errors","Off");
|
||||
//TODO
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user