add method to get bucket name from s3 storage

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2019-05-24 14:02:03 +02:00
parent f2885c171f
commit 834db3af2c
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -65,6 +65,9 @@ trait S3ConnectionTrait {
$this->params = $params;
}
public function getBucket() {
return $this->bucket;
}
/**
* Returns the connection
@ -72,7 +75,7 @@ trait S3ConnectionTrait {
* @return S3Client connected client
* @throws \Exception if connection could not be made
*/
protected function getConnection() {
public function getConnection() {
if (!is_null($this->connection)) {
return $this->connection;
}