From 85a9b7f0949932b1def24f86ab7dc3df87933e6f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 7 Jun 2013 17:12:45 +0200 Subject: Storage wrapper: provide access to the wrapped storage --- lib/files/storage/wrapper.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/files') diff --git a/lib/files/storage/wrapper.php b/lib/files/storage/wrapper.php index 5939faec562..78892a564c4 100644 --- a/lib/files/storage/wrapper.php +++ b/lib/files/storage/wrapper.php @@ -10,7 +10,7 @@ namespace OC\Files\Storage; class Wrapper implements Storage { /** - * @var Storage $storage + * @var \OC\Files\Storage\Storage $storage */ protected $storage; @@ -21,6 +21,13 @@ class Wrapper implements Storage { $this->storage = $parameters['storage']; } + /** + * @return \OC\Files\Storage\Storage + */ + public function getWrapperStorage() { + return $this->storage; + } + /** * Get the identifier for the storage, * the returned id should be the same for every storage object that is created with the same parameters -- cgit v1.2.3