This commit is contained in:
2023-04-19 14:32:42 +08:00
parent 73a0b50a98
commit 28e7e5dc81
+13
View File
@@ -39,6 +39,9 @@ class HotReload extends Command
{
$this->setName('hot:load');
parent::configure(); // TODO: Change the autogenerated stub
Process::signal(SIGINT, fn() => $this->exit());
Process::signal(SIGTERM, fn() => $this->exit());
}
@@ -64,6 +67,16 @@ class HotReload extends Command
}
/**
* @return void
* @throws Exception
*/
public function exit(): void
{
$this->stopProcess();
}
/**
* @return void
*/