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
Directory
WriteFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Filesystem\Directory
;
7
8
use
Magento\Framework\Filesystem\DriverPool
;
9
10
class
WriteFactory
11
{
17
private
$driverPool;
18
24
public
function
__construct
(
DriverPool
$driverPool)
25
{
26
$this->driverPool = $driverPool;
27
}
28
37
public
function
create
(
$path
, $driverCode =
DriverPool::FILE
, $createPermissions =
null
)
38
{
39
$driver = $this->driverPool->getDriver($driverCode);
40
$factory
= new \Magento\Framework\Filesystem\File\WriteFactory(
41
$this->driverPool
42
);
43
44
return
new
Write
(
45
$factory
,
46
$driver,
47
$path
,
48
$createPermissions,
49
new
PathValidator
($driver)
50
);
51
}
52
}
Magento\Framework\Filesystem\Directory\PathValidator
Definition:
PathValidator.php:20
Magento\Framework\Filesystem\DriverPool\FILE
const FILE
Definition:
DriverPool.php:17
Magento\Framework\Filesystem\Directory\WriteFactory\create
create($path, $driverCode=DriverPool::FILE, $createPermissions=null)
Definition:
WriteFactory.php:37
Magento\Framework\Filesystem\DriverPool
Definition:
DriverPool.php:12
Magento\Framework\Filesystem\Directory\WriteFactory\__construct
__construct(DriverPool $driverPool)
Definition:
WriteFactory.php:24
Magento\Framework\Filesystem\Directory\Write
Definition:
Write.php:12
$factory
$factory
Definition:
category_multiple_stores.php:10
Magento\Framework\Filesystem\Directory
Definition:
PathValidator.php:9
Magento\Framework\Filesystem\Directory\WriteFactory
Definition:
WriteFactory.php:10
$path
$path
Definition:
import_with_filesystem_images.php:14