src/filesystem/FilesystemManager.php
public function createOssAdapter(array $config)
    {
        $root = $config['root'] ?? null;
        $oss = new OssClient($config['access_id'], $config['access_secret'], $config['endpoint'],
            $config['isCName'] ?? false,
            $config['securityToken'] ?? null,
            $config['proxy'] ?? null
        );
        $oss->setTimeout($config['timeout'] ?? 3600);
        $oss->setConnectTimeout($config['connectTimeout'] ?? 10);
        $oss->setUseSSL($config['useSSL'] ?? false);
        return $this->adapt($this->createFlysystem(
            new OssAdapter($oss, $config['bucket'], $root), $config
        ));
    }
public function createOssAdapter(array $config)
    {
        $root = $config['root'] ?? null;
        $oss = new OssClient($config['access_id'], $config['access_secret'], $config['endpoint'],
            $config['isCName'] ?? false,
            $config['securityToken'] ?? null,
            $config['proxy'] ?? null
        );
        $oss->setTimeout($config['timeout'] ?? 3600);
        $oss->setConnectTimeout($config['connectTimeout'] ?? 10);
        $oss->setUseSSL($config['useSSL'] ?? false);
        return $this->adapt($this->createFlysystem(
            new OssAdapter($oss, $config['bucket'], $root), $config
        ));
    }
public function createOssAdapter ( array $ config ) { $ root = $ config [ 'root' ] ?? null ; $ oss = new OssClient ( $ config [ 'access_id' ] , $ config [ 'access_secret' ] , $ config [ 'endpoint' ] , $ config [ 'isCName' ] ?? false , $ config [ 'securityToken' ] ?? null , $ config [ 'proxy' ] ?? null ) ; $ oss -> setTimeout ( $ config [ 'timeout' ] ?? 3600 ) ; $ oss -> setConnectTimeout ( $ config [ 'connectTimeout' ] ?? 10 ) ; $ oss -> setUseSSL ( $ config [ 'useSSL' ] ?? false ) ; return $ this -> adapt ( $ this -> createFlysystem ( new OssAdapter ( $ oss , $ config [ 'bucket' ] , $ root ) , $ config ) ) ; }
Create an instance of the oss driver.

@param  array $config
@return \yuncms\filesystem\Filesystem
@throws \OSS\Core\OssException
@throws \Exception
Create an instance of the oss driver .