文档工具更改为私有地址

This commit is contained in:
候学杰 2019-01-30 12:56:40 +08:00
parent 8477c76407
commit dd5656e363
3 changed files with 25 additions and 21 deletions

View File

@ -15,5 +15,9 @@
} }
}, },
"require-dev": { "require-dev": {
},
"api-doc-php": {
"type": "vcs",
"url": "git@git.int.haowumc.com:composer/php-rpc-doc.git"
} }
} }

View File

@ -84,24 +84,24 @@ class JsonRpcServer extends JsonRpcBase
* @param string $method 参数名称 * @param string $method 参数名称
* @return array 返回结果 * @return array 返回结果
*/ */
protected function parseMethod($method) // protected function parseMethod($method)
{ // {
$method = explode('.', $method); // $method = explode('.', $method);
//
if (count($method) < 2) { // if (count($method) < 2) {
return ['', '']; // return ['', ''];
} // }
//
$function = array_pop($method); // $function = array_pop($method);
$class = 'Rpc' . ucwords(array_pop($method)); // $class = 'Rpc' . ucwords(array_pop($method));
//
foreach ($method as $one) { // foreach ($method as $one) {
$class = ucwords($one) . '\\' . $class; // $class = ucwords($one) . '\\' . $class;
} // }
//
$class = "App\Rpc\\$class"; // $class = "App\Rpc\\$class";
return [$class, $function]; // return [$class, $function];
} // }
protected function isEnoughParameter($class, $method, $parameters) protected function isEnoughParameter($class, $method, $parameters)