Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-20 19:04:15 +08:00
parent bcd78aba56
commit d22db391f3
8 changed files with 21 additions and 57 deletions
+3 -3
View File
@@ -95,9 +95,9 @@ class Server extends HttpService
$processes = array_merge($this->process, Config::get('processes', []));
$this->container->get(ProcessManager::class)->batch($processes);
$this->getContainer()->get(ProcessManager::class)->batch($processes);
$this->eventDispatch->dispatch(new OnServerBeforeStart());
$this->getEventDispatch()->dispatch(new OnServerBeforeStart());
return $this->manager->getServer()->start();
}
@@ -117,7 +117,7 @@ class Server extends HttpService
foreach ($this->manager->sortService($configs['ports'] ?? []) as $config) {
$this->state->exit($config['port']);
}
$this->container->get(EventDispatch::class)->dispatch(new OnShutdown());
$this->getContainer()->get(EventDispatch::class)->dispatch(new OnShutdown());
}