Skip to content

Commit 8f833d5

Browse files
committed
fixed constructor
1 parent 5ebf433 commit 8f833d5

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/internal/Magento/Framework/Storage/StorageProvider.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,8 @@ public function get(string $storageName): StorageInterface
9191
);
9292
}
9393
$adapter = $this->adapterProvider->create($config['adapter'], $config['options']);
94-
$this->storage[$storageName] = $this->storageFactory->create(
95-
[
96-
'factory' => $this->filesystemFactory->create(
97-
[
98-
'adapter' => $adapter
99-
]
100-
)
101-
]
102-
);
94+
$filesystem = $this->filesystemFactory->create(['adapter' => $adapter]);
95+
$this->storage[$storageName] = $this->storageFactory->create(['filesystem' => $filesystem]);
10396
} else {
10497
throw new UnsupportedStorageException("No storage with name '$storageName' is declared");
10598
}

0 commit comments

Comments
 (0)