[Pkg-owncloud-commits] [owncloud] 186/205: Fixing "ImportController::__construct() must implement interface OCP\\ICache, instance of OC\\Cache\\File given"
David Prévot
taffit at moszumanska.debian.org
Thu Jul 2 17:37:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit fc474de57313e7d3c369fedb90c7c877212ae78e
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Mon Jun 29 22:43:18 2015 +0200
Fixing "ImportController::__construct() must implement interface OCP\\ICache, instance of OC\\Cache\\File given"
---
lib/private/cache/file.php | 5 ++++-
tests/lib/server.php | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/private/cache/file.php b/lib/private/cache/file.php
index c033e53..32c0012 100644
--- a/lib/private/cache/file.php
+++ b/lib/private/cache/file.php
@@ -25,9 +25,12 @@ namespace OC\Cache;
use OC\Files\Filesystem;
use OC\Files\View;
+use OCP\ICache;
use OCP\Security\ISecureRandom;
-class File {
+class File implements ICache {
+
+ /** @var View */
protected $storage;
/**
diff --git a/tests/lib/server.php b/tests/lib/server.php
index f2971fe..cf0ad82 100644
--- a/tests/lib/server.php
+++ b/tests/lib/server.php
@@ -99,6 +99,7 @@ class Server extends \Test\TestCase {
['NavigationManager', '\OC\NavigationManager'],
['NavigationManager', '\OCP\INavigationManager'],
['UserCache', '\OC\Cache\File'],
+ ['UserCache', '\OCP\ICache'],
['OcsClient', '\OC\OCSClient'],
--
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