修正 命名空间大小写

修正 扩展控制器目录位置
This commit is contained in:
huangdijia
2015-01-23 13:39:51 +08:00
parent b32d00b7f8
commit a2716ad313
71 changed files with 127 additions and 394 deletions

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Behavior;
use Think\Config;
namespace think\behavior;
use think\config;
/**
* 系统行为扩展:模板内容输出替换

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Behavior;
namespace think\behavior;
/**
* 系统行为扩展:定位模板文件

View File

@@ -9,6 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\behavior;
/**
* 系统行为扩展:静态缓存读取
* @category Think
@@ -16,7 +18,7 @@
* @subpackage Behavior
* @author liu21st <liu21st@gmail.com>
*/
class ReadHtmlCacheBehavior {
class ReadHtmlCache {
protected $options = [
'HTML_CACHE_ON' => false,
'HTML_CACHE_TIME' => 60,

View File

@@ -9,10 +9,10 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Behavior;
use Think\Config;
use Think\Log;
use Think\Debug;
namespace think\behavior;
use think\Config;
use think\Log;
use think\Debug;
/**
* 系统行为扩展页面Trace显示输出

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
defined('THINK_PATH') or exit();
namespace think\behavior;
/**
* 系统行为扩展:表单令牌生成
* @category Think
@@ -17,7 +17,7 @@ defined('THINK_PATH') or exit();
* @subpackage Behavior
* @author liu21st <liu21st@gmail.com>
*/
class TokenBuildBehavior extends Behavior {
class TokenBuild extends Behavior {
// 行为参数定义
protected $options = [
'TOKEN_ON' => false, // 开启令牌验证

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* Apc缓存驱动

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* 数据库方式缓存驱动

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* Eaccelerator缓存驱动

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* 文件类型缓存类

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* Memcache缓存驱动

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* Redis缓存驱动

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* Secache缓存驱动

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* 文件类型缓存类

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* Sqlite缓存驱动

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* Wincache缓存驱动

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
namespace think\cache\driver;
/**
* Xcache缓存驱动

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Config\Driver;
namespace think\config\driver;
class Ini {
public function parse($config){

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Config\Driver;
namespace think\config\driver;
class Xml {
public function parse($config){

View File

@@ -9,10 +9,10 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db;
use Think\Config;
use Think\Debug;
use Think\Log;
namespace think\db;
use think\config;
use think\debug;
use think\log;
use PDO;
abstract class Driver {

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
namespace think\db\driver;
use think\db\driver;
/**
* Mongo数据库驱动

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
namespace think\db\driver;
use think\db\driver;
/**
* mysql数据库驱动

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
namespace think\db\driver;
use think\db\driver;
/**
* Oracle数据库驱动

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
namespace think\db\driver;
use think\db\driver;
/**
* Pgsql数据库驱动

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
namespace think\db\driver;
use think\db\driver;
/**
* Sqlite数据库驱动

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
namespace think\db\driver;
use think\db\driver;
use PDO;
/**

View File

@@ -9,10 +9,10 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db;
use Think\Config;
use Think\Debug;
use Think\Log;
namespace think\db;
use think\config;
use think\debug;
use think\log;
use PDO;
class Lite {

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Log\Driver;
namespace think\log\driver;
class File {

View File

@@ -9,10 +9,13 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Model;
use Traits\Think\Model\Extend,Traits\Think\Model\Query;
T('Think/Model/Extend');
T('Think/Model/Query');
class ExtendModel extends \Think\Model {
use Extend,Query;
namespace think\model;
use traits\think\model\extend,
traits\think\model\query;
T('think/model/extend');
T('think/model/query');
class ExtendModel extends \think\model {
use extend, query;
}

View File

@@ -8,7 +8,8 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Model;
namespace think\model;
/**
* MongoModel模型类
* 实现了ODM和ActiveRecords模式

View File

@@ -9,8 +9,9 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Model;
T('Think/Model/Relation');
class RelationModel extends \Think\Model {
use \Traits\Think\Model\Relation;
namespace think\model;
T('think/model/relation');
class RelationModel extends \think\model {
use \traits\think\model\relation;
}

View File

@@ -9,8 +9,9 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Model;
T('Think/Model/View');
class ViewModel extends \Think\Model {
use \Traits\Think\Model\View;
namespace think\model;
T('think/model/view');
class ViewModel extends \think\model {
use \traits\think\model\view;
}

View File

@@ -13,7 +13,7 @@
# 应用到ThinkPHP中因而修改为ThinkPHP规范的命名空间
# namespace Michelf;
namespace Think\Parser\Driver;
namespace think\parser\driver;
#
# The following two constants are deprecated: avoid using them, they'll

View File

@@ -11,7 +11,7 @@
// | Ubb.php 2013-04-03
// +----------------------------------------------------------------------
namespace Think\Parser\Driver;
namespace think\parser\driver;
class Ubb{
/**

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Session\Driver;
namespace think\session\driver;
use SessionHandler;
class Driver extends SessionHandler {

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Storage\Driver;
use Think\Storage;
namespace think\storage\driver;
use think\storage;
// 本地文件写入存储类
class File extends Storage{

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: luofei614 <weibo.com/luofei614>
// +----------------------------------------------------------------------
namespace Think\Storage\Driver;
use Think\Storage;
namespace think\storage\driver;
use think\storage;
// SAE环境文件写入存储类
class Sae extends Storage{

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Template\Driver;
use Think\Exception;
namespace think\template\driver;
use think\exception;
class File {
// 写入编译缓存

View File

@@ -9,7 +9,7 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Template;
namespace think\template;
/**
* ThinkPHP标签库TagLib解析基类

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Template\Taglib;
use Think\Template\Taglib;
namespace think\template\taglib;
use think\template\taglib;
/**
* CX标签库解析类

View File

@@ -9,8 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\View\Driver;
use Think\Template;
namespace think\view\driver;
use think\template;
class Think {
private $template = null;