修正 Parser的路径

规范 Slog的编码规则
This commit is contained in:
huangdijia
2015-12-08 10:20:35 +08:00
parent eba3b29bbc
commit f0c915b3db
4 changed files with 5 additions and 6 deletions

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think;
namespace org;
// 内容解析类
class Parser
@@ -24,7 +24,7 @@ class Parser
public static function parse($content, $type)
{
if (!isset(self::$handler[$type])) {
$class = '\\think\\parser\\driver\\' . strtolower($type);
$class = '\\org\\parser\\driver\\' . strtolower($type);
self::$handler[$type] = new $class();
}
return self::$handler[$type]->parse($content);

View File

@@ -17,7 +17,7 @@ use think\Debug;
use think\Exception;
use think\Lang;
use think\Log;
use think\slog;
use think\Slog;
abstract class Driver
{

View File

@@ -4,7 +4,7 @@
* @author luofei614<weibo.com/luofei614>
*/
namespace think;
class slog
class Slog
{
public static $start_time=0;
public static $start_memory=0;

View File

@@ -42,9 +42,8 @@ return [
'think\Url' => CORE_PATH . 'url' . EXT,
'think\Debug' => CORE_PATH . 'debug' . EXT,
'think\Input' => CORE_PATH . 'input' . EXT,
'think\Parser' => CORE_PATH . 'parser' . EXT,
'think\Lang' => CORE_PATH . 'lang' . EXT,
'think\slog' => CORE_PATH . 'slog' . EXT
'think\Slog' => CORE_PATH . 'slog' . EXT
],
'init' => [],