set the mount id before calling storage wrapper

this allows the storage wrapper to use the mount id for it's own logic

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2020-08-31 16:38:47 +02:00 committed by backportbot[bot]
parent db36ad575a
commit 9c7dd68238

View file

@ -101,6 +101,7 @@ class MountPoint implements IMountPoint {
$mountpoint = $this->formatPath($mountpoint);
$this->mountPoint = $mountpoint;
$this->mountId = $mountId;
if ($storage instanceof Storage) {
$this->class = get_class($storage);
$this->storage = $this->loader->wrap($this, $storage);
@ -112,7 +113,6 @@ class MountPoint implements IMountPoint {
$this->class = $storage;
$this->arguments = $arguments;
}
$this->mountId = $mountId;
}
/**