setProcessName(sprintf('start[%d].server', $server->master_pid)); \Kiri::getDi()->get(EventDispatch::class)->dispatch(new OnStart($server)); } /** * @param \Swoole\Server $server * @throws ReflectionException */ public function onBeforeShutdown(\Swoole\Server $server) { \Kiri::getDi()->get(EventDispatch::class)->dispatch(new OnBeforeShutdown($server)); } /** * @param \Swoole\Server $server * @throws ReflectionException */ public function onShutdown(\Swoole\Server $server) { \Kiri::getDi()->get(EventDispatch::class)->dispatch(new OnShutdown($server)); } }