Storage wrapper: provide access to the wrapped storage
This commit is contained in:
parent
f35578ec54
commit
85a9b7f094
|
@ -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…
Reference in New Issue