File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
app/code/Magento/RemoteStorage
Model/Filesystem/Directory Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 9
9
use Magento \Framework \Filesystem \Directory \DenyListPathValidator ;
10
10
use Magento \Framework \Filesystem \Directory \PathValidator ;
11
11
use Magento \Framework \Filesystem \Directory \WriteFactory as BaseWriteFactory ;
12
+ use Magento \Framework \Filesystem \DriverPool as BaseDriverPool ;
12
13
use Magento \RemoteStorage \Driver \DriverPool ;
13
14
use Magento \Framework \ObjectManagerInterface ;
14
15
@@ -27,19 +28,19 @@ class WriteFactory extends BaseWriteFactory
27
28
/**
28
29
* Pool of filesystem drivers
29
30
*
30
- * @var DriverPool
31
+ * @var BaseDriverPool
31
32
*/
32
33
private $ driverPool ;
33
34
34
35
/**
35
36
* WriteFactory constructor.
36
37
*
37
38
* @param ObjectManagerInterface $objectManager
38
- * @param DriverPool $driverPool
39
+ * @param BaseDriverPool $driverPool
39
40
*/
40
41
public function __construct (
41
42
ObjectManagerInterface $ objectManager ,
42
- DriverPool $ driverPool
43
+ BaseDriverPool $ driverPool
43
44
) {
44
45
$ this ->objectManager = $ objectManager ;
45
46
$ this ->driverPool = $ driverPool ;
Original file line number Diff line number Diff line change 10
10
<preference for =" Magento\RemoteStorage\Driver\Adapter\CachedAdapterInterface" type =" Magento\RemoteStorage\Driver\Adapter\CachedAdapter" />
11
11
<preference for =" Magento\RemoteStorage\Driver\Adapter\MetadataProviderInterface" type =" Magento\RemoteStorage\Driver\Adapter\MetadataProvider" />
12
12
<preference for =" Magento\RemoteStorage\Driver\Adapter\MetadataProviderFactoryInterface" type =" Magento\RemoteStorage\Driver\Adapter\MetadataProviderFactory" />
13
+ <preference for =" Magento\Framework\Filesystem\DriverPool" type =" Magento\RemoteStorage\Driver\DriverPool" />
13
14
<virtualType name =" remoteWriteFactory" type =" Magento\Framework\Filesystem\Directory\WriteFactory" >
14
15
<arguments >
15
16
<argument name =" driverPool" xsi : type =" object" >Magento\RemoteStorage\Driver\DriverPool</argument >
20
21
<argument name =" driverPool" xsi : type =" object" >Magento\RemoteStorage\Driver\DriverPool</argument >
21
22
</arguments >
22
23
</virtualType >
23
- <type name =" Magento\Framework\Filesystem\Directory\ReadFactory" >
24
- <arguments >
25
- <argument name =" driverPool" xsi : type =" object" >Magento\RemoteStorage\Driver\DriverPool</argument >
26
- </arguments >
27
- </type >
28
24
<type name =" Magento\RemoteStorage\Filesystem" >
29
25
<arguments >
30
26
<argument name =" writeFactory" xsi : type =" object" >
You can’t perform that action at this time.
0 commit comments