From 7995c6e1dce83becf1e948de960894d481775a6f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 29 Jan 2021 16:16:03 +0100 Subject: dont return private storage interface from public mount interface Signed-off-by: Robin Appelman --- lib/public/Files/Mount/IMountPoint.php | 2 +- lib/public/Files/Storage/IStorage.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/public/Files') 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 -- cgit v1.2.3