From f76749fa4837b7e2d8afd39a52fde7c61cd6ac3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 19 Oct 2021 16:23:55 +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/{OnProcessInterface.php => BaseProcess.php} | 3 ++- http-server/SInterface/OnProcessInterface.php | 2 +- kiri-engine/Error/LoggerProcess.php | 4 ++-- kiri-engine/FileListen/FileChangeCustomProcess.php | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) rename http-server/Abstracts/{OnProcessInterface.php => BaseProcess.php} (95%) diff --git a/http-server/Abstracts/OnProcessInterface.php b/http-server/Abstracts/BaseProcess.php similarity index 95% rename from http-server/Abstracts/OnProcessInterface.php rename to http-server/Abstracts/BaseProcess.php index a4c91b30..13b83572 100644 --- a/http-server/Abstracts/OnProcessInterface.php +++ b/http-server/Abstracts/BaseProcess.php @@ -5,13 +5,14 @@ namespace Server\Abstracts; use JetBrains\PhpStorm\Pure; use Kiri\Kiri; +use Server\SInterface\OnProcessInterface; use Swoole\Coroutine; use Swoole\Process; /** * */ -abstract class OnProcessInterface implements \Server\SInterface\OnProcessInterface +abstract class BaseProcess implements OnProcessInterface { /** @var bool */ diff --git a/http-server/SInterface/OnProcessInterface.php b/http-server/SInterface/OnProcessInterface.php index 003913d0..93d2a962 100644 --- a/http-server/SInterface/OnProcessInterface.php +++ b/http-server/SInterface/OnProcessInterface.php @@ -8,7 +8,7 @@ use Swoole\Process; /** - * Interface OnProcessInterface + * Interface BaseProcess * @package SInterface */ interface OnProcessInterface diff --git a/kiri-engine/Error/LoggerProcess.php b/kiri-engine/Error/LoggerProcess.php index 09cfea79..32c1e7dd 100644 --- a/kiri-engine/Error/LoggerProcess.php +++ b/kiri-engine/Error/LoggerProcess.php @@ -11,13 +11,13 @@ use Kiri\Exception\ComponentException; use Kiri\Kiri; use Swoole\Coroutine; use Swoole\Process; -use Server\Abstracts\OnProcessInterface; +use Server\Abstracts\BaseProcess; /** * Class LoggerProcess * @package Kiri\Error */ -class LoggerProcess extends OnProcessInterface +class LoggerProcess extends BaseProcess { /** diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index aea0fd32..b5390684 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -6,14 +6,14 @@ use Exception; use Kiri\Abstracts\Config; use Kiri\Kiri; use ReflectionException; -use Server\Abstracts\OnProcessInterface; +use Server\Abstracts\BaseProcess; use Swoole\Process; /** * */ -class FileChangeCustomProcess extends OnProcessInterface +class FileChangeCustomProcess extends BaseProcess {