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
ObjectManager
TMapFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\ObjectManager
;
7
8
use
Magento\Framework\ObjectManagerInterface
;
9
13
class
TMapFactory
14
{
18
private
$objectManager;
19
24
public
function
__construct
(
ObjectManagerInterface
$objectManager)
25
{
26
$this->objectManager =
$objectManager
;
27
}
28
33
public
function
create
(array $args)
34
{
35
return
$this->objectManager->create(TMap::class, $args);
36
}
37
42
public
function
createSharedObjectsMap
(array $args)
43
{
44
return
$this->objectManager->create(
45
TMap::class,
46
array_merge(
47
$args,
48
[
49
'objectCreationStrategy'
=>
function
(
ObjectManagerInterface
$om
, $objectName) {
50
return
$om
->get($objectName);
51
}
52
]
53
)
54
);
55
}
56
}
Magento\Framework\ObjectManager\TMapFactory\create
create(array $args)
Definition:
TMapFactory.php:33
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\ObjectManager
Magento\Framework\ObjectManager\TMapFactory
Definition:
TMapFactory.php:13
Magento\Framework\ObjectManager\TMapFactory\__construct
__construct(ObjectManagerInterface $objectManager)
Definition:
TMapFactory.php:24
$om
$om
Definition:
notifications.php:6
Magento\Framework\ObjectManager\TMapFactory\createSharedObjectsMap
createSharedObjectsMap(array $args)
Definition:
TMapFactory.php:42