Storage wrapper: provide access to the wrapped storage

remotes/origin/stable6
Robin Appelman 13 years ago
parent f35578ec54
commit 85a9b7f094
  1. 9
      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

Loading…
Cancel
Save