Skip to content

Commit bd07fb7

Browse files
authored
Removed instantiating new driverpool when it's already available.
Removed instantiating new driverpool when it's already available.
1 parent 0548157 commit bd07fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/App/ObjectManagerFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ protected function _loadPrimaryConfig(DirectoryList $directoryList, $driverPool,
260260
new \Magento\Framework\Filesystem\Directory\WriteFactory($driverPool)
261261
),
262262
new \Magento\Framework\Config\FileIteratorFactory(
263-
new \Magento\Framework\Filesystem\File\ReadFactory(new \Magento\Framework\Filesystem\DriverPool())
263+
new \Magento\Framework\Filesystem\File\ReadFactory($driverPool)
264264
)
265265
);
266266
$schemaLocator = new \Magento\Framework\ObjectManager\Config\SchemaLocator();

0 commit comments

Comments
 (0)