modify plugin name
This commit is contained in:
@@ -20,6 +20,7 @@ class Scanner extends BaseProcess
|
|||||||
|
|
||||||
public string $name = 'hot reload';
|
public string $name = 'hot reload';
|
||||||
|
|
||||||
|
protected bool $enable_coroutine = false;
|
||||||
|
|
||||||
private array $dirs = [];
|
private array $dirs = [];
|
||||||
|
|
||||||
@@ -125,6 +126,18 @@ class Scanner extends BaseProcess
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function onSigterm(): static
|
||||||
|
{
|
||||||
|
pcntl_signal(SIGTERM, function () {
|
||||||
|
$this->onProcessStop();
|
||||||
|
});
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user