1
0

the acl constants have been removed

This commit is contained in:
frostealth
2016-05-31 00:04:35 +06:00
parent 240c91b97a
commit 7293c625a2
2 changed files with 6 additions and 13 deletions

View File

@@ -164,7 +164,7 @@ class MyCommand implements Command, HasBucket
protected $something; protected $something;
public function getBucket(): string public function getBucket()
{ {
return $this->bucket; return $this->bucket;
} }
@@ -176,7 +176,7 @@ class MyCommand implements Command, HasBucket
return $this; return $this;
} }
public function getSomething(): string public function getSomething()
{ {
return $this->something; return $this->something;
} }
@@ -241,7 +241,7 @@ class MyPlainCommand implements PlainCommand, HasBucket
{ {
protected $args = []; protected $args = [];
public function getBucket(): string public function getBucket()
{ {
return $this->args['Bucket'] ?? ''; return $this->args['Bucket'] ?? '';
} }
@@ -253,12 +253,12 @@ class MyPlainCommand implements PlainCommand, HasBucket
return $this; return $this;
} }
public function getSomething(): string public function getSomething()
{ {
return $this->args['something'] ?? ''; return $this->args['something'] ?? '';
} }
public function setSomething(string $something) public function setSomething($something)
{ {
$this->args['something'] = $something; $this->args['something'] = $something;
@@ -283,4 +283,5 @@ allow to execute this command immediately: `$command->setSomething('some value')
## License ## License
Yii2 AWS S3 is licensed under the MIT License. Yii2 AWS S3 is licensed under the MIT License.
See the [LICENSE](LICENSE) file for more information. See the [LICENSE](LICENSE) file for more information.

View File

@@ -28,14 +28,6 @@ use yii\helpers\ArrayHelper;
*/ */
class Service extends Component implements ServiceInterface 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 */ /** @var string */
public $defaultBucket = ''; public $defaultBucket = '';