Merge pull request #15715 from nextcloud/s3-bucket-name
Allow other code to use the s3 client from object store
This commit is contained in:
commit
96e892770d
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