1 | <?php |
||
36 | class AmazonS3StorageEngine implements StorageEngineInterface |
||
37 | { |
||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | private $bucket; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | private $acl = 'private'; |
||
47 | |||
48 | /** |
||
49 | * @var S3Client |
||
50 | */ |
||
51 | private $client; |
||
52 | |||
53 | /** |
||
54 | * @var string |
||
55 | */ |
||
56 | private $region = 'us-east-1'; |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getAcl() |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getBucket() |
||
76 | |||
77 | /** |
||
78 | * Instantiates and returns an S3Client instance |
||
79 | * @return S3Client |
||
80 | */ |
||
81 | public function getClient() |
||
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getRegion() |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function remove($identifier) |
||
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | public function retrieve($identifier) |
||
141 | |||
142 | /** |
||
143 | * Sets the ACL the asset should be stored with. |
||
144 | * |
||
145 | * @param string |
||
146 | */ |
||
147 | public function setAcl($acl) |
||
152 | |||
153 | /** |
||
154 | * Sets the bucket the assets should be stored to. |
||
155 | * |
||
156 | * @param string |
||
157 | */ |
||
158 | public function setBucket($bucket) |
||
163 | |||
164 | /** |
||
165 | * Override the S3 region to connect to |
||
166 | * @param string |
||
167 | */ |
||
168 | public function setRegion($region) |
||
173 | |||
174 | /** |
||
175 | * {@inheritdoc} |
||
176 | */ |
||
177 | public function store(Asset $asset, $path = null, $filename = null) |
||
197 | } |
||
198 |
This method has been deprecated.