From 735eac6c9dbdcae80c46d3f680fbb7e86a2e2432 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 1 Jul 2014 17:29:57 +0200 Subject: add a explicit interface for the home storage --- lib/private/files/objectstore/homeobjectstorestorage.php | 2 +- lib/private/files/storage/home.php | 2 +- lib/public/files/storage.php | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/private/files/objectstore/homeobjectstorestorage.php b/lib/private/files/objectstore/homeobjectstorestorage.php index 26a2788d860..947fc496b20 100644 --- a/lib/private/files/objectstore/homeobjectstorestorage.php +++ b/lib/private/files/objectstore/homeobjectstorestorage.php @@ -22,7 +22,7 @@ namespace OC\Files\ObjectStore; use OC\User\User; -class HomeObjectStoreStorage extends ObjectStoreStorage { +class HomeObjectStoreStorage extends ObjectStoreStorage implements \OCP\Files\IHomeStorage { /** * The home user storage requires a user object to create a unique storage id diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php index 214deede620..015b1f01885 100644 --- a/lib/private/files/storage/home.php +++ b/lib/private/files/storage/home.php @@ -11,7 +11,7 @@ namespace OC\Files\Storage; /** * Specialized version of Local storage for home directory usage */ -class Home extends Local { +class Home extends Local implements \OCP\Files\IHomeStorage { /** * @var string */ diff --git a/lib/public/files/storage.php b/lib/public/files/storage.php index 323d20db564..8f8d7852ee4 100644 --- a/lib/public/files/storage.php +++ b/lib/public/files/storage.php @@ -336,3 +336,7 @@ interface Storage { */ public function instanceOfStorage($class); } + +interface IHomeStorage { + +} -- cgit v1.2.3