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-config
Model
Config
SourceFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Config\Model\Config
;
7
12
class
SourceFactory
13
{
19
protected
$_objectManager
;
20
24
public
function
__construct
(\
Magento
\Framework\ObjectManagerInterface
$objectManager
)
25
{
26
$this->_objectManager =
$objectManager
;
27
}
28
35
public
function
create
($modelName)
36
{
37
$model
= $this->_objectManager->get($modelName);
38
return
$model
;
39
}
40
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
$model
$model
Definition:
enable_catalog_product_reindex_schedule.php:9
Magento\Config\Model\Config\SourceFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
SourceFactory.php:24
Magento\Config\Model\Config\SourceFactory
Definition:
SourceFactory.php:12
Magento
Magento\Config\Model\Config\SourceFactory\create
create($modelName)
Definition:
SourceFactory.php:35
Magento\Config\Model\Config
Magento\Config\Model\Config\SourceFactory\$_objectManager
$_objectManager
Definition:
SourceFactory.php:19