[Pkg-owncloud-commits] [owncloud] 182/273: add a explicit interface for the home storage
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:13:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 735eac6c9dbdcae80c46d3f680fbb7e86a2e2432
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Tue Jul 1 17:29:57 2014 +0200
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(-)
diff --git a/lib/private/files/objectstore/homeobjectstorestorage.php b/lib/private/files/objectstore/homeobjectstorestorage.php
index 26a2788..947fc49 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 214deed..015b1f0 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 323d20d..8f8d785 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 {
+
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list