// +---------------------------------------------------------------------- namespace think\swoole; use think\swoole\command\Rpc; use think\swoole\command\RpcInterface; use think\swoole\command\Server as ServerCommand; class Service extends \think\Service { public function boot() { $this->commands(ServerCommand::class, RpcInterface::class, Rpc::class); } }