From 834db3af2c89480cd7dec7c2cc8df22279ae21a4 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 24 May 2019 14:02:03 +0200 Subject: [PATCH] add method to get bucket name from s3 storage Signed-off-by: Robin Appelman --- lib/private/Files/ObjectStore/S3ConnectionTrait.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index b2bb6d706e..4cd25878ec 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -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; }