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
Event
ObserverFactory.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\Event
;
9
10
class
ObserverFactory
11
{
15
protected
$_objectManager
;
16
20
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
21
{
22
$this->_objectManager =
$objectManager
;
23
}
24
31
public
function
get
(
$className
)
32
{
33
return
$this->_objectManager->get(
$className
);
34
}
35
43
public
function
create
(
$className
, array
$arguments
= [])
44
{
45
return
$this->_objectManager->create(
$className
,
$arguments
);
46
}
47
}
Magento\Framework\Event\ObserverFactory\create
create($className, array $arguments=[])
Definition:
ObserverFactory.php:43
Magento\Framework\Event\ObserverFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
ObserverFactory.php:20
Magento\Framework\Event
Definition:
Collection.php:12
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Event\ObserverFactory\$_objectManager
$_objectManager
Definition:
ObserverFactory.php:15
Magento\Framework\Event\ObserverFactory
Definition:
ObserverFactory.php:10
Magento
$arguments
$arguments
Definition:
final_price.phtml:24
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31