This commit is contained in:
2023-04-21 22:26:43 +08:00
parent ada0f49a43
commit f313860436
12 changed files with 25 additions and 135 deletions
+1 -2
View File
@@ -218,8 +218,7 @@ class AsyncServer implements ServerInterface
*/
public function start(): void
{
$processManager = Kiri::getDi()->get(EventDispatch::class);
$processManager->dispatch(new OnServerBeforeStart());
event(new OnServerBeforeStart());
$this->server->start();
}