org\Oauth::connect PHP 메소드

connect() 공개 정적인 메소드

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