Skip to content
Snippets Groups Projects
Commit 998fa2d9 authored by Robin Appelman's avatar Robin Appelman
Browse files

Pass any methods custom to specific storage implementations to the wrapped storage

parent 0ae7a49c
No related merge requests found
......@@ -450,4 +450,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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment