From 1897254498820511e3fc0a2957db4bac99f9b01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 20 Jul 2021 11:37:17 +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 --- System/Error/LoggerProcess.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/System/Error/LoggerProcess.php b/System/Error/LoggerProcess.php index 9703670f..79a9791d 100644 --- a/System/Error/LoggerProcess.php +++ b/System/Error/LoggerProcess.php @@ -6,6 +6,7 @@ namespace Snowflake\Error; use Exception; use JetBrains\PhpStorm\Pure; +use Server\SInterface\CustomProcess; use Snowflake\Core\Json; use Snowflake\Exception\ComponentException; use Snowflake\Process\Process; @@ -17,23 +18,13 @@ use Swoole\Coroutine; * Class LoggerProcess * @package Snowflake\Error */ -class LoggerProcess extends Process +class LoggerProcess implements CustomProcess { - - /** - * @param \Swoole\Process $process - */ - public function before(\Swoole\Process $process): void - { - // TODO: Implement before() method. - } - - /** * @return string */ - #[Pure] public function getProcessName(): string + #[Pure] public function getProcessName(\Swoole\Process $process): string { // TODO: Implement getProcessName() method. return get_called_class();