src/Leevel/Protocol/Provider/Register.php
protected function rpcServer(): void
    {
        $this->container->singleton('rpc.server', function (IContainer $container) {
            return new RpcServer(
                $container,
                array_merge(
                    $container['option']['protocol\\server'],
                    $container['option']['protocol\\rpc']
                )
            );
        });
    }
protected function rpcServer(): void
    {
        $this->container->singleton('rpc.server', function (IContainer $container) {
            return new RpcServer(
                $container,
                array_merge(
                    $container['option']['protocol\\server'],
                    $container['option']['protocol\\rpc']
                )
            );
        });
    }
注册 rpc.server 服务.