初始化
This commit is contained in:
19
src/Worker.php
Normal file
19
src/Worker.php
Normal 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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user