From 740dc7ebbd7e41553ce046297e578771457349ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 18 Nov 2021 11:37:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Abstracts/BaseProcess.php | 2 +- {SInterface => Contract}/OnBeforeShutdown.php | 2 +- {SInterface => Contract}/OnCloseInterface.php | 2 +- .../OnConnectInterface.php | 2 +- .../OnDisconnectInterface.php | 2 +- .../OnDownloadInterface.php | 2 +- .../OnHandshakeInterface.php | 2 +- .../OnMessageInterface.php | 2 +- {SInterface => Contract}/OnOpenInterface.php | 2 +- {SInterface => Contract}/OnPacketInterface.php | 2 +- .../OnPipeMessageInterface.php | 4 ++-- .../OnProcessInterface.php | 4 ++-- .../OnReceiveInterface.php | 2 +- {SInterface => Contract}/OnTaskInterface.php | 2 +- Handler/OnPipeMessage.php | 2 +- Handler/OnServerTask.php | 2 +- ServerManager.php | 18 +++++++++--------- 17 files changed, 27 insertions(+), 27 deletions(-) rename {SInterface => Contract}/OnBeforeShutdown.php (57%) rename {SInterface => Contract}/OnCloseInterface.php (86%) rename {SInterface => Contract}/OnConnectInterface.php (87%) rename {SInterface => Contract}/OnDisconnectInterface.php (87%) rename {SInterface => Contract}/OnDownloadInterface.php (80%) rename {SInterface => Contract}/OnHandshakeInterface.php (89%) rename {SInterface => Contract}/OnMessageInterface.php (88%) rename {SInterface => Contract}/OnOpenInterface.php (89%) rename {SInterface => Contract}/OnPacketInterface.php (90%) rename {SInterface => Contract}/OnPipeMessageInterface.php (70%) rename {SInterface => Contract}/OnProcessInterface.php (89%) rename {SInterface => Contract}/OnReceiveInterface.php (90%) rename {SInterface => Contract}/OnTaskInterface.php (83%) diff --git a/Abstracts/BaseProcess.php b/Abstracts/BaseProcess.php index 267f66d..120261a 100644 --- a/Abstracts/BaseProcess.php +++ b/Abstracts/BaseProcess.php @@ -4,7 +4,7 @@ namespace Server\Abstracts; use JetBrains\PhpStorm\Pure; -use Server\SInterface\OnProcessInterface; +use Server\Contract\OnProcessInterface; use Swoole\Coroutine; use Swoole\Process; diff --git a/SInterface/OnBeforeShutdown.php b/Contract/OnBeforeShutdown.php similarity index 57% rename from SInterface/OnBeforeShutdown.php rename to Contract/OnBeforeShutdown.php index 9e70758..e5397e5 100644 --- a/SInterface/OnBeforeShutdown.php +++ b/Contract/OnBeforeShutdown.php @@ -1,6 +1,6 @@