org\Oauth::connect PHP Method

connect() public static method

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