mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正 命名空间大小写
修正 扩展控制器目录位置
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Behavior;
|
||||
use Think\Config;
|
||||
namespace think\behavior;
|
||||
use think\config;
|
||||
|
||||
/**
|
||||
* 系统行为扩展:模板内容输出替换
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Behavior;
|
||||
namespace think\behavior;
|
||||
|
||||
/**
|
||||
* 系统行为扩展:定位模板文件
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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显示输出
|
||||
|
||||
@@ -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, // 开启令牌验证
|
||||
|
||||
2
library/think/cache/driver/apc.php
vendored
2
library/think/cache/driver/apc.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* Apc缓存驱动
|
||||
|
||||
2
library/think/cache/driver/db.php
vendored
2
library/think/cache/driver/db.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* 数据库方式缓存驱动
|
||||
|
||||
2
library/think/cache/driver/eaccelerator.php
vendored
2
library/think/cache/driver/eaccelerator.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* Eaccelerator缓存驱动
|
||||
|
||||
2
library/think/cache/driver/file.php
vendored
2
library/think/cache/driver/file.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* 文件类型缓存类
|
||||
|
||||
2
library/think/cache/driver/memcache.php
vendored
2
library/think/cache/driver/memcache.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* Memcache缓存驱动
|
||||
|
||||
2
library/think/cache/driver/redis.php
vendored
2
library/think/cache/driver/redis.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* Redis缓存驱动
|
||||
|
||||
2
library/think/cache/driver/secache.php
vendored
2
library/think/cache/driver/secache.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* Secache缓存驱动
|
||||
|
||||
2
library/think/cache/driver/simple.php
vendored
2
library/think/cache/driver/simple.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* 文件类型缓存类
|
||||
|
||||
2
library/think/cache/driver/sqlite.php
vendored
2
library/think/cache/driver/sqlite.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* Sqlite缓存驱动
|
||||
|
||||
2
library/think/cache/driver/wincache.php
vendored
2
library/think/cache/driver/wincache.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* Wincache缓存驱动
|
||||
|
||||
2
library/think/cache/driver/xcache.php
vendored
2
library/think/cache/driver/xcache.php
vendored
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Cache\Driver;
|
||||
namespace think\cache\driver;
|
||||
|
||||
/**
|
||||
* Xcache缓存驱动
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Config\Driver;
|
||||
namespace think\config\driver;
|
||||
|
||||
class Ini {
|
||||
public function parse($config){
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Config\Driver;
|
||||
namespace think\config\driver;
|
||||
|
||||
class Xml {
|
||||
public function parse($config){
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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数据库驱动
|
||||
|
||||
@@ -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数据库驱动
|
||||
|
||||
@@ -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数据库驱动
|
||||
|
||||
@@ -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数据库驱动
|
||||
|
||||
@@ -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数据库驱动
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Log\Driver;
|
||||
namespace think\log\driver;
|
||||
|
||||
class 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;
|
||||
}
|
||||
@@ -8,7 +8,8 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Think\Model;
|
||||
namespace think\model;
|
||||
|
||||
/**
|
||||
* MongoModel模型类
|
||||
* 实现了ODM和ActiveRecords模式
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// | Ubb.php 2013-04-03
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Parser\Driver;
|
||||
namespace think\parser\driver;
|
||||
|
||||
class Ubb{
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Session\Driver;
|
||||
namespace think\session\driver;
|
||||
use SessionHandler;
|
||||
|
||||
class Driver extends SessionHandler {
|
||||
|
||||
@@ -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{
|
||||
|
||||
|
||||
@@ -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{
|
||||
|
||||
|
||||
@@ -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 {
|
||||
// 写入编译缓存
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Think\Template;
|
||||
namespace think\template;
|
||||
|
||||
/**
|
||||
* ThinkPHP标签库TagLib解析基类
|
||||
|
||||
@@ -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标签库解析类
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user