summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-01-29 16:16:03 +0100
committerRobin Appelman <robin@icewind.nl>2021-03-23 12:25:37 +0100
commit7995c6e1dce83becf1e948de960894d481775a6f (patch)
treef36b77877bbc3c0c2e81d840e0eff20613e280a1 /lib/public/Files
parenta219fa587af77bcb5f9d0a9a9cd3b0e0134153ff (diff)
downloadnextcloud-server-7995c6e1dce83becf1e948de960894d481775a6f.tar.gz
nextcloud-server-7995c6e1dce83becf1e948de960894d481775a6f.zip
dont return private storage interface from public mount interface
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Files')
-rw-r--r--lib/public/Files/Mount/IMountPoint.php2
-rw-r--r--lib/public/Files/Storage/IStorage.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/Files/Mount/IMountPoint.php b/lib/public/Files/Mount/IMountPoint.php
index 7315fd97035..9b55c764451 100644
--- a/lib/public/Files/Mount/IMountPoint.php
+++ b/lib/public/Files/Mount/IMountPoint.php
@@ -48,7 +48,7 @@ interface IMountPoint {
/**
* Get the storage that is mounted
*
- * @return \OC\Files\Storage\Storage
+ * @return \OCP\Files\Storage\IStorage
* @since 8.0.0
*/
public function getStorage();
diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php
index 5e70e319c40..ee26dd9c66b 100644
--- a/lib/public/Files/Storage/IStorage.php
+++ b/lib/public/Files/Storage/IStorage.php
@@ -433,10 +433,12 @@ interface IStorage {
public function getOwner($path);
/**
+ * @param string $path
+ * @param IStorage|null $storage
* @return ICache
* @since 9.0.0
*/
- public function getCache();
+ public function getCache($path = '', $storage = null);
/**
* @return IPropagator