diff --git a/Abstracts/AsyncServer.php b/Abstracts/AsyncServer.php index f70b363..3e94be8 100644 --- a/Abstracts/AsyncServer.php +++ b/Abstracts/AsyncServer.php @@ -5,7 +5,7 @@ namespace Kiri\Server\Abstracts; use Exception; use Kiri; use Kiri\Abstracts\Config; -use Kiri\Di\ContainerInterface; +use Psr\Container\ContainerInterface; use Kiri\Exception\ConfigException; use Kiri\Server\Events\OnShutdown; use Psr\Container\ContainerExceptionInterface; diff --git a/Abstracts/ProcessManager.php b/Abstracts/ProcessManager.php index aa85f0f..5e779fd 100644 --- a/Abstracts/ProcessManager.php +++ b/Abstracts/ProcessManager.php @@ -13,7 +13,7 @@ use Psr\Container\NotFoundExceptionInterface; use Swoole\Coroutine; use Swoole\Process; use Kiri\Annotation\Inject; -use Kiri\Di\ContainerInterface; +use Psr\Container\ContainerInterface; use Kiri\Events\EventProvider; use Kiri\Server\ServerInterface; use Kiri\Server\Events\OnServerBeforeStart; diff --git a/CoroutineServer.php b/CoroutineServer.php index 5b735b4..1e30394 100644 --- a/CoroutineServer.php +++ b/CoroutineServer.php @@ -4,8 +4,7 @@ namespace Kiri\Server; use Exception; use Kiri\Abstracts\Config; -use Kiri\Di\ContainerInterface; -use Kiri\Di\LocalService; +use Psr\Container\ContainerInterface; use Kiri\Events\EventDispatch; use Kiri\Exception\ConfigException; use Kiri\Exception\NotFindClassException; diff --git a/Server.php b/Server.php index 111a054..1db050c 100644 --- a/Server.php +++ b/Server.php @@ -14,7 +14,7 @@ use Kiri\Server\Events\OnShutdown; use Kiri\Server\Events\OnWorkerStart; use Kiri\Server\Events\OnTaskerStart; use Psr\Container\ContainerExceptionInterface; -use Kiri\Di\ContainerInterface; +use Psr\Container\ContainerInterface; use Psr\Container\NotFoundExceptionInterface; use Kiri\Server\Events\OnWorkerStop; use Swoole\Coroutine;