From 7293c625a2df93fff6fda5afe3e5a4c99632d75a Mon Sep 17 00:00:00 2001 From: frostealth Date: Tue, 31 May 2016 00:04:35 +0600 Subject: [PATCH] the acl constants have been removed --- README.md | 11 ++++++----- src/Service.php | 8 -------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index bbc2997..8e04df4 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ class MyCommand implements Command, HasBucket protected $something; - public function getBucket(): string + public function getBucket() { return $this->bucket; } @@ -176,7 +176,7 @@ class MyCommand implements Command, HasBucket return $this; } - public function getSomething(): string + public function getSomething() { return $this->something; } @@ -241,7 +241,7 @@ class MyPlainCommand implements PlainCommand, HasBucket { protected $args = []; - public function getBucket(): string + public function getBucket() { return $this->args['Bucket'] ?? ''; } @@ -253,12 +253,12 @@ class MyPlainCommand implements PlainCommand, HasBucket return $this; } - public function getSomething(): string + public function getSomething() { return $this->args['something'] ?? ''; } - public function setSomething(string $something) + public function setSomething($something) { $this->args['something'] = $something; @@ -283,4 +283,5 @@ allow to execute this command immediately: `$command->setSomething('some value') ## License Yii2 AWS S3 is licensed under the MIT License. + See the [LICENSE](LICENSE) file for more information. diff --git a/src/Service.php b/src/Service.php index e5b4b00..399b937 100644 --- a/src/Service.php +++ b/src/Service.php @@ -28,14 +28,6 @@ */ class Service extends Component implements ServiceInterface { - const ACL_PRIVATE = 'private'; - const ACL_PUBLIC_READ = 'public-read'; - const ACL_PUBLIC_READ_WRITE = 'public-read-write'; - const ACL_AWS_EXEC_READ = 'aws-exec-read'; - const ACL_AUTHENTICATED_READ = 'authenticated-read'; - const ACL_BUCKET_OWNER_READ = 'bucket-owner-read'; - const ALC_BUCKET_OWNER_FULL_CONTROL = 'bucket-owner-full-control'; - /** @var string */ public $defaultBucket = '';