forked from LiveCarta/yii2-aws-s3
the acl constants have been removed
This commit is contained in:
11
README.md
11
README.md
@@ -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.
|
||||||
|
|||||||
@@ -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 = '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user