初始化

This commit is contained in:
2026-01-06 13:37:07 +08:00
parent c3435595fe
commit 00d7a381aa
70 changed files with 3913 additions and 1 deletions

19
src/Worker.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
namespace think\worker;
class Worker extends \Workerman\Worker
{
protected static function init(): void
{
static::$pidFile = runtime_path() . 'worker.pid';
static::$statusFile = runtime_path() . 'worker.status';
static::$logFile = runtime_path() . 'worker.log';
parent::init();
}
protected static function parseCommand(): void
{
}
}