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
module-deploy
Model
DeploymentConfig
ImporterFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Deploy\Model\DeploymentConfig
;
7
8
use
Magento\Framework\App\DeploymentConfig\ImporterInterface
;
9
use
Magento\Framework\ObjectManagerInterface
;
10
16
class
ImporterFactory
17
{
23
private
$objectManager;
24
28
public
function
__construct
(
ObjectManagerInterface
$objectManager)
29
{
30
$this->objectManager =
$objectManager
;
31
}
32
41
public
function
create
(
$className
, array
$data
= [])
42
{
43
$importer = $this->objectManager->create(
$className
,
$data
);
44
45
if
(!$importer instanceof
ImporterInterface
) {
46
throw
new \InvalidArgumentException(
47
'Type "'
.
$className
.
'" is not instance of '
. ImporterInterface::class
48
);
49
}
50
51
return
$importer;
52
}
53
}
Magento\Deploy\Model\DeploymentConfig
Definition:
ChangeDetector.php:6
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Deploy\Model\DeploymentConfig\ImporterFactory\create
create($className, array $data=[])
Definition:
ImporterFactory.php:41
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\App\DeploymentConfig\ImporterInterface
Definition:
ImporterInterface.php:13
Magento\Deploy\Model\DeploymentConfig\ImporterFactory\__construct
__construct(ObjectManagerInterface $objectManager)
Definition:
ImporterFactory.php:28
Magento\Deploy\Model\DeploymentConfig\ImporterFactory
Definition:
ImporterFactory.php:16
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31