This commit is contained in:
2021-11-30 15:10:01 +08:00
parent 92a1e68bec
commit b279e56efd
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Kiri\Rpc; namespace Kiri\Rpc;
use Annotation\Inject; use Note\Inject;
use Exception; use Exception;
use Http\Message\Response; use Http\Message\Response;
use Http\Message\Stream; use Http\Message\Stream;
@@ -1,8 +1,8 @@
<?php <?php
namespace Kiri\Rpc\Annotation; namespace Kiri\Rpc\Note;
use Annotation\Attribute; use Note\Attribute;
use Kiri\Abstracts\Config; use Kiri\Abstracts\Config;
use Kiri\Consul\Agent; use Kiri\Consul\Agent;
use Kiri\Exception\ConfigException; use Kiri\Exception\ConfigException;
+4 -4
View File
@@ -2,8 +2,8 @@
namespace Kiri\Rpc; namespace Kiri\Rpc;
use Annotation\Annotation; use Note\Note;
use Annotation\Inject; use Note\Inject;
use Http\Constrict\RequestInterface; use Http\Constrict\RequestInterface;
use Http\Handler\Router; use Http\Handler\Router;
use Http\Message\ServerRequest; use Http\Message\ServerRequest;
@@ -40,8 +40,8 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
public Router $router; public Router $router;
#[Inject(Annotation::class)] #[Inject(Note::class)]
public Annotation $annotation; public Note $annotation;
#[Inject(EventProvider::class)] #[Inject(EventProvider::class)]