/** * 连接oauth * @access public * @param string $type Oauth类型 * @param array $options 配置数组 * @return object */ public static function connect($type, $options = []) { $class = 'think\\oauth\\driver\\' . strtolower($type); self::$handler = new $class($options); return self::$handler; }
/** * 连接oauth * @access public * @param string $type Oauth类型 * @param array $options 配置数组 * @return object */ public static function connect($type, $options = []) { $class = '\\org\\oauth\\driver\\' . ucwords($type); self::$handler = new $class($options); return self::$handler; }