This commit is contained in:
2021-10-28 11:26:58 +08:00
parent 031b576e24
commit 42d32242b6
2 changed files with 20 additions and 5 deletions
+8 -2
View File
@@ -44,10 +44,13 @@ interface ' . ucfirst($name) . 'RpcInterface
}
private function createProducers($name)
private function createProducers($name): string
{
$html = '<?php
namespace Rpc\Producers;
use Annotation\Target;
use Http\Handler\Controller;
use Kiri\Rpc\Annotation\JsonRpc;
@@ -75,10 +78,13 @@ class ' . ucfirst($name) . 'RpcController extends Controller implements ' . ucfi
}
private function createConsumer($name)
private function createConsumer($name): string
{
$html = '<?php
namespace Rpc\Consumers;
use Annotation\Target;
use Http\Handler\Controller;
use Kiri\Rpc\Annotation\JsonRpc;