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
DB
MapperFactory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\DB
;
8
13
class
MapperFactory
14
{
18
protected
$objectManager
;
19
23
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
24
{
25
$this->objectManager =
$objectManager
;
26
}
27
36
public
function
create
(
$className
, array
$arguments
= [])
37
{
38
$mapper = $this->objectManager->create(
$className
,
$arguments
);
39
if
(!$mapper instanceof
MapperInterface
) {
40
throw
new \Magento\Framework\Exception\LocalizedException(
41
new
\
Magento
\Framework\
Phrase
(
42
'%1 doesn\'t implement \Magento\Framework\DB\MapperInterface'
,
43
[
$className
]
44
)
45
);
46
}
47
return
$mapper;
48
}
49
}
Magento\Framework\DB\MapperFactory\$objectManager
$objectManager
Definition:
MapperFactory.php:18
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\DB\MapperFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
MapperFactory.php:23
Magento\Framework\DB
Definition:
AbstractMapper.php:6
Magento\Framework\DB\MapperFactory
Definition:
MapperFactory.php:13
Magento\Framework\DB\MapperFactory\create
create($className, array $arguments=[])
Definition:
MapperFactory.php:36
Magento
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\DB\MapperInterface
Definition:
MapperInterface.php:11
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31