[Pkg-owncloud-commits] [owncloud] 38/85: Pass any methods custom to specific storage implementations to the wrapped storage
David Prévot
taffit at moszumanska.debian.org
Tue Jun 17 19:12:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch 6.0
in repository owncloud.
commit b62ba9808a0c2d854e617ff18c6852071e3e14e7
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu May 29 16:13:05 2014 +0200
Pass any methods custom to specific storage implementations to the wrapped storage
---
lib/private/files/storage/wrapper/wrapper.php | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lib/private/files/storage/wrapper/wrapper.php b/lib/private/files/storage/wrapper/wrapper.php
index 3e77b0b..c731669 100644
--- a/lib/private/files/storage/wrapper/wrapper.php
+++ b/lib/private/files/storage/wrapper/wrapper.php
@@ -442,4 +442,15 @@ class Wrapper implements \OC\Files\Storage\Storage {
public function instanceOfStorage($class) {
return is_a($this, $class) or $this->storage->instanceOfStorage($class);
}
+
+ /**
+ * Pass any methods custom to specific storage implementations to the wrapped storage
+ *
+ * @param string $method
+ * @param array $args
+ * @return mixed
+ */
+ public function __call($method, $args) {
+ return call_user_func_array(array($this->storage, $method), $args);
+ }
}
--
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