add option to wrap existing mounts
This commit is contained in:
parent
4e490b0688
commit
f4b6a8aa08
|
@ -95,6 +95,13 @@ class Manager {
|
|||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Mount[]
|
||||
*/
|
||||
public function getAll() {
|
||||
return $this->mounts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Find mounts by numeric storage id
|
||||
*
|
||||
|
|
|
@ -138,4 +138,11 @@ class Mount {
|
|||
}
|
||||
return $path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param callable $wrapper
|
||||
*/
|
||||
public function wrapStorage($wrapper) {
|
||||
$this->storage = $wrapper($this->mountPoint, $this->storage);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue