ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# get_instance 获取SwooleDistributedServer的实例。 Common.php中也有get_instance,效果和这个等同。 例子: ```php public function __construct() { if (!empty(get_instance())) { $this->loader = get_instance()->loader; $this->logger = get_instance()->log; $this->server = get_instance()->server; $this->config = get_instance()->config; $this->pack = get_instance()->pack; } } ```