src/Core/Rest.php
static function getInstance(Delegate &$delegate)
    {
        if (!self::$instance) {
            self::$instance = new Rest($delegate);
        }

        return self::$instance;
    }
static function getInstance(Delegate &$delegate)
    {
        if (!self::$instance) {
            self::$instance = new Rest($delegate);
        }

        return self::$instance;
    }
创建rest实例

@param Delegate $delegate
@return Rest
@throws CoreException