改名
This commit is contained in:
@@ -30,8 +30,7 @@ interface ' . ucfirst($name) . 'RpcInterface
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
}
|
}';
|
||||||
';
|
|
||||||
|
|
||||||
|
|
||||||
$name = ucfirst($name) . 'RpcInterface.php';
|
$name = ucfirst($name) . 'RpcInterface.php';
|
||||||
@@ -68,9 +67,7 @@ class ' . ucfirst($name) . 'RpcService extends JsonRpcConsumers implements ' . u
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}';
|
||||||
|
|
||||||
';
|
|
||||||
|
|
||||||
$name = ucfirst($name) . 'RpcService.php';
|
$name = ucfirst($name) . 'RpcService.php';
|
||||||
if (!is_dir(APP_PATH . '/rpc/Producers/')) {
|
if (!is_dir(APP_PATH . '/rpc/Producers/')) {
|
||||||
@@ -96,15 +93,13 @@ use Rpc\\' . ucfirst($name) . 'RpcInterface;
|
|||||||
|
|
||||||
|
|
||||||
#[Target]
|
#[Target]
|
||||||
#[JsonRpc(method: \'' . $name . '\', version: \'2.0\')]
|
#[JsonRpc(service: \'' . $name . '\', version: \'2.0\')]
|
||||||
class ' . ucfirst($name) . 'RpcConsumer extends Controller implements ' . ucfirst($name) . 'RpcInterface
|
class ' . ucfirst($name) . 'RpcConsumer extends Controller implements ' . ucfirst($name) . 'RpcInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}';
|
||||||
|
|
||||||
';
|
|
||||||
|
|
||||||
$name = ucfirst($name) . 'RpcConsumer.php';
|
$name = ucfirst($name) . 'RpcConsumer.php';
|
||||||
if (!is_dir(APP_PATH . '/rpc/Consumers/')) {
|
if (!is_dir(APP_PATH . '/rpc/Consumers/')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user