Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Filesystem
File
ReadFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Filesystem\File
;
7
8
use
Magento\Framework\Filesystem\DriverInterface
;
9
use
Magento\Framework\Filesystem\DriverPool
;
10
15
class
ReadFactory
16
{
22
private
$driverPool;
23
29
public
function
__construct
(
DriverPool
$driverPool)
30
{
31
$this->driverPool = $driverPool;
32
}
33
41
public
function
create
(
$path
, $driver)
42
{
43
if
(is_string($driver)) {
44
return
new
Read
(
$path
, $this->driverPool->getDriver($driver));
45
}
46
return
new
Read
(
$path
, $driver);
47
}
48
}
Magento\Framework\Filesystem\File\ReadFactory\__construct
__construct(DriverPool $driverPool)
Definition:
ReadFactory.php:29
Magento\Framework\Filesystem\File\Read
Definition:
Read.php:12
Magento\Framework\Filesystem\File\ReadFactory
Definition:
ReadFactory.php:15
Magento\Framework\Filesystem\File
Definition:
Read.php:7
Magento\Framework\Filesystem\DriverPool
Definition:
DriverPool.php:12
Magento\Framework\Filesystem\File\ReadFactory\create
create($path, $driver)
Definition:
ReadFactory.php:41
Magento\Framework\Filesystem\DriverInterface
Definition:
DriverInterface.php:18
$path
$path
Definition:
import_with_filesystem_images.php:14