Update spaces.php

This commit is contained in:
Devang Srivastava 2017-12-07 22:36:07 +05:30 committed by GitHub
parent 2bc54c72fe
commit 74821d787d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,7 +150,7 @@ class SpacesConnect {
return $result;
}
function downloadFile($fileName, $destinationPath = "") {
function downloadFile($fileName, $destinationPath) {
$result = $this->client->getObject(array(
'Bucket' => $this->space,
'Key' => $fileName,
@ -189,7 +189,7 @@ class SpacesConnect {
return $result;
}
function listBucketACL() {
function listSpaceACL() {
$acl = $this->client->getBucketAcl([
'Bucket' => $this->space,
]);
@ -197,7 +197,7 @@ class SpacesConnect {
}
function PutBucketACL($params) {
function PutSpaceACL($params) {
$acl = $s3Client->putBucketAcl($params);
return $acl;
}