manager_pid)); $dispatch = \Kiri::getDi()->get(EventDispatch::class); $dispatch->dispatch(new OnManagerStart($server)); } /** * @param \Swoole\Server $server * @return void * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface|ReflectionException */ public function onManagerStop(\Swoole\Server $server): void { $dispatch = \Kiri::getDi()->get(EventDispatch::class); $dispatch->dispatch(new OnManagerStop($server)); } }