注释规范

This commit is contained in:
thinkphp
2016-06-20 17:34:54 +08:00
parent 940ed22965
commit a032828d5c
48 changed files with 724 additions and 760 deletions

View File

@@ -12,6 +12,7 @@
namespace think\controller;
use think\App;
use think\Loader;
/**
* ThinkPHP RPC控制器类
*/
@@ -33,14 +34,14 @@ abstract class Rpc
}
//导入类库
\think\Loader::import('vendor.phprpc.phprpc_server');
Loader::import('vendor.phprpc.phprpc_server');
//实例化phprpc
$server = new \PHPRPC_Server();
if ($this->allowMethodList) {
$methods = $this->allowMethodList;
} else {
$methods = get_class_methods($this);
$methods = array_diff($methods, array('__construct', '__call', '_initialize'));
$methods = array_diff($methods, ['__construct', '__call', '_initialize']);
}
$server->add($methods, $this);