We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ebf433 commit 8f833d5Copy full SHA for 8f833d5
lib/internal/Magento/Framework/Storage/StorageProvider.php
@@ -91,15 +91,8 @@ public function get(string $storageName): StorageInterface
91
);
92
}
93
$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
- );
+ $filesystem = $this->filesystemFactory->create(['adapter' => $adapter]);
+ $this->storage[$storageName] = $this->storageFactory->create(['filesystem' => $filesystem]);
103
} else {
104
throw new UnsupportedStorageException("No storage with name '$storageName' is declared");
105
0 commit comments