diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-05 17:51:45 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-12 11:42:10 +0200 |
commit | 4bbcbc520620b59c19f058fa79e107ee1a8ce275 (patch) | |
tree | 6e8500208955af3d909d91440327f81b72bebe08 /apps/dav/lib/Storage | |
parent | cb1b366baf75da4c578bc534884eefa7f6b4b3d2 (diff) | |
download | nextcloud-server-4bbcbc520620b59c19f058fa79e107ee1a8ce275.tar.gz nextcloud-server-4bbcbc520620b59c19f058fa79e107ee1a8ce275.zip |
feat: Make `ISharedStorage` public API and reuse where possible
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/dav/lib/Storage')
-rw-r--r-- | apps/dav/lib/Storage/PublicShareWrapper.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/dav/lib/Storage/PublicShareWrapper.php b/apps/dav/lib/Storage/PublicShareWrapper.php index fb24abda9d0..058dbe2bcea 100644 --- a/apps/dav/lib/Storage/PublicShareWrapper.php +++ b/apps/dav/lib/Storage/PublicShareWrapper.php @@ -9,9 +9,10 @@ declare(strict_types=1); namespace OCA\DAV\Storage; use OC\Files\Storage\Wrapper\Wrapper; +use OCP\Files\Storage\ISharedStorage; use OCP\Share\IShare; -class PublicShareWrapper extends Wrapper { +class PublicShareWrapper extends Wrapper implements ISharedStorage { private IShare $share; @@ -29,7 +30,7 @@ class PublicShareWrapper extends Wrapper { public function getShare(): IShare { $storage = parent::getWrapperStorage(); if (method_exists($storage, 'getShare')) { - /** @var \OCA\Files_Sharing\SharedStorage $storage */ + /** @var ISharedStorage $storage */ return $storage->getShare(); } |