Files
think-worker/src/Worker.php
2026-01-06 13:37:07 +08:00

20 lines
405 B
PHP

<?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
{
}
}