add method to get bucket name from s3 storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
f2885c171f
commit
834db3af2c
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue