feat: 实现TCP Server

This commit is contained in:
zimoyin
2026-03-02 21:59:43 +08:00
parent 043306819b
commit a79dfae57d
144 changed files with 15785 additions and 140 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace app\flow\config;
use app\utils\Logger;
/**
* 流程配置抽象基类
* 所有配置类的公共基础,统一提供 Logger 内聚与 toArray 约定
*/
abstract class AbstractConfig
{
/**
* 转换为数组(用于序列化/调试)
*/
abstract public function toArray(): array;
/**
* 写 debug 日志(使用全局静态 Logger)
*/
protected function log(string $message, array $params = []): void
{
Logger::debug($message, $params);
}
}