Skip to content

Commit

Permalink
add method to get bucket name from s3 storage
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed May 24, 2019
1 parent f2885c1 commit 834db3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/Files/ObjectStore/S3ConnectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ protected function parseParams($params) {
$this->params = $params;
}

public function getBucket() {
return $this->bucket;
}

/**
* Returns the connection
*
* @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;
}
Expand Down

0 comments on commit 834db3a

Please sign in to comment.