mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
优化自动加载
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace think\controller;
|
namespace think\controller;
|
||||||
|
|
||||||
abstract class Amf {
|
abstract class amf {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPRpc控制器架构函数
|
* PHPRpc控制器架构函数
|
||||||
@@ -19,7 +19,7 @@ abstract class Amf {
|
|||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
//导入类库
|
//导入类库
|
||||||
Think\Loader::import('Vendor.Zend.Amf.Server');
|
think\loader::import('Vendor.Zend.Amf.Server');
|
||||||
//实例化AMF
|
//实例化AMF
|
||||||
$server = new \Zend_Amf_Server();
|
$server = new \Zend_Amf_Server();
|
||||||
$server -> setClass($this);
|
$server -> setClass($this);
|
||||||
|
|||||||
@@ -11,14 +11,14 @@
|
|||||||
|
|
||||||
namespace think\controller;
|
namespace think\controller;
|
||||||
|
|
||||||
abstract class Phprpc {
|
abstract class phprpc {
|
||||||
/**
|
/**
|
||||||
* PHPRpc控制器架构函数
|
* PHPRpc控制器架构函数
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
//导入类库
|
//导入类库
|
||||||
Think\Loader::import('Vendor.phpRPC.phprpc_server');
|
think\loader::import('Vendor.phpRPC.phprpc_server');
|
||||||
//实例化phprpc
|
//实例化phprpc
|
||||||
$server = new \PHPRPC_Server();
|
$server = new \PHPRPC_Server();
|
||||||
$server->add($this);
|
$server->add($this);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace think\controller;
|
namespace think\controller;
|
||||||
|
|
||||||
abstract class Rest {
|
abstract class rest {
|
||||||
|
|
||||||
protected $_method = ''; // 当前请求类型
|
protected $_method = ''; // 当前请求类型
|
||||||
protected $_type = ''; // 当前资源类型
|
protected $_type = ''; // 当前资源类型
|
||||||
|
|||||||
Reference in New Issue
Block a user