public static function client($config)
    {
        $defaults = [
            'path' => ''
        ];
        $config += $defaults;
        $client = new S3Client([
            'credentials' => [
                'key' => $config['username'],
                'secret' => $config['password'],
            ],
            'region' => $config['region'],
            'version' => $config['version'],
        ]);

        return new AwsS3Adapter($client, $config['host'], $config['path']);
    }
public static function client($config)
    {
        $defaults = [
            'path' => ''
        ];
        $config += $defaults;
        $client = new S3Client([
            'credentials' => [
                'key' => $config['username'],
                'secret' => $config['password'],
            ],
            'region' => $config['region'],
            'version' => $config['version'],
        ]);

        return new AwsS3Adapter($client, $config['host'], $config['path']);
    }
public static function client ( $ config ) { $ defaults = [ 'path' => '' ] ; $ config += $ defaults ; $ client = new S3Client ( [ 'credentials' => [ 'key' => $ config [ 'username' ] , 'secret' => $ config [ 'password' ] , ] , 'region' => $ config [ 'region' ] , 'version' => $ config [ 'version' ] , ] ) ; return new AwsS3Adapter ( $ client , $ config [ 'host' ] , $ config [ 'path' ] ) ; }
Return new Adapter

@param array $config list of options parsed from dsn

@return \League\Flysystem\AdapterInterface|bool
Return new Adapter