mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正 Parser的路径
规范 Slog的编码规则
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace think;
|
namespace org;
|
||||||
|
|
||||||
// 内容解析类
|
// 内容解析类
|
||||||
class Parser
|
class Parser
|
||||||
@@ -24,7 +24,7 @@ class Parser
|
|||||||
public static function parse($content, $type)
|
public static function parse($content, $type)
|
||||||
{
|
{
|
||||||
if (!isset(self::$handler[$type])) {
|
if (!isset(self::$handler[$type])) {
|
||||||
$class = '\\think\\parser\\driver\\' . strtolower($type);
|
$class = '\\org\\parser\\driver\\' . strtolower($type);
|
||||||
self::$handler[$type] = new $class();
|
self::$handler[$type] = new $class();
|
||||||
}
|
}
|
||||||
return self::$handler[$type]->parse($content);
|
return self::$handler[$type]->parse($content);
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use think\Debug;
|
|||||||
use think\Exception;
|
use think\Exception;
|
||||||
use think\Lang;
|
use think\Lang;
|
||||||
use think\Log;
|
use think\Log;
|
||||||
use think\slog;
|
use think\Slog;
|
||||||
|
|
||||||
abstract class Driver
|
abstract class Driver
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* @author luofei614<weibo.com/luofei614>
|
* @author luofei614<weibo.com/luofei614>
|
||||||
*/
|
*/
|
||||||
namespace think;
|
namespace think;
|
||||||
class slog
|
class Slog
|
||||||
{
|
{
|
||||||
public static $start_time=0;
|
public static $start_time=0;
|
||||||
public static $start_memory=0;
|
public static $start_memory=0;
|
||||||
|
|||||||
@@ -42,9 +42,8 @@ return [
|
|||||||
'think\Url' => CORE_PATH . 'url' . EXT,
|
'think\Url' => CORE_PATH . 'url' . EXT,
|
||||||
'think\Debug' => CORE_PATH . 'debug' . EXT,
|
'think\Debug' => CORE_PATH . 'debug' . EXT,
|
||||||
'think\Input' => CORE_PATH . 'input' . EXT,
|
'think\Input' => CORE_PATH . 'input' . EXT,
|
||||||
'think\Parser' => CORE_PATH . 'parser' . EXT,
|
|
||||||
'think\Lang' => CORE_PATH . 'lang' . EXT,
|
'think\Lang' => CORE_PATH . 'lang' . EXT,
|
||||||
'think\slog' => CORE_PATH . 'slog' . EXT
|
'think\Slog' => CORE_PATH . 'slog' . EXT
|
||||||
],
|
],
|
||||||
|
|
||||||
'init' => [],
|
'init' => [],
|
||||||
|
|||||||
Reference in New Issue
Block a user