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
Api
ObjectFactory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Api
;
8
9
class
ObjectFactory
10
{
14
protected
$objectManager
;
15
19
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
20
{
21
$this->objectManager =
$objectManager
;
22
}
23
31
public
function
create
(
$className
, array
$arguments
)
32
{
33
return
$this->objectManager->create(
$className
,
$arguments
);
34
}
35
42
public
function
get
(
$className
)
43
{
44
return
$this->objectManager->get(
$className
);
45
}
46
}
Magento\Framework\Api\ObjectFactory\create
create($className, array $arguments)
Definition:
ObjectFactory.php:31
Magento\Framework\Api
Definition:
AbstractExtensibleObject.php:6
Magento\Framework\Api\ObjectFactory\$objectManager
$objectManager
Definition:
ObjectFactory.php:14
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Api\ObjectFactory
Definition:
ObjectFactory.php:9
Magento\Framework\Api\ObjectFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
ObjectFactory.php:19
Magento
$arguments
$arguments
Definition:
final_price.phtml:24
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31