Skip to content

Commit 35b613d

Browse files
committed
add new features
1 parent 1e922c9 commit 35b613d

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
},
1616
"autoload": {
1717
"psr-4": {
18-
"lobtao\\rpc\\": "src/",
19-
"lobtao\\example\\": "example/"
18+
"lobtao\\rpc\\": "src/"
2019
}
2120
}
2221
}

example_composer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "lobtao/rpc",
3+
"description": "rpc invoke",
4+
"minimum-stability": "stable",
5+
"keywords": ["php","rpc"],
6+
"license": "proprietary",
7+
"authors": [
8+
{
9+
"name": "lobtao",
10+
"email": "[email protected]"
11+
}
12+
],
13+
"require": {
14+
"ext-json": "*"
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"lobtao\\rpc\\": "src/",
19+
"lobtao\\example\\": "example/"
20+
}
21+
}
22+
}

src/BaseRpc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
class BaseRpc
66
{
7-
public $ERR_MSG_PARAMS_ERROR = '请求参数错误';
8-
public $ERR_MSG_CLASS_NOT_FOUND = '%s 不存在';
9-
public $ERR_MSG_FUNCTION_NOT_FOUND_IN_CLASS = '%s 中不存在 %s 方法';
7+
public $ERR_MSG_PARAMS_ERROR = 'request parameter error';
8+
public $ERR_MSG_CLASS_NOT_FOUND = '%s does not exist';
9+
public $ERR_MSG_FUNCTION_NOT_FOUND_IN_CLASS = '%s does not exist in class %s';
1010

1111
protected $namespace;
1212
protected $func;

0 commit comments

Comments
 (0)