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
Indexer
StructureFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Indexer
;
7
8
class
StructureFactory
9
{
13
protected
$objectManager
;
14
18
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
19
{
20
$this->objectManager =
$objectManager
;
21
}
22
31
public
function
create
(
$className
,
$arguments
= [])
32
{
33
$structure = $this->objectManager->create(
$className
,
$arguments
);
34
if
(!$structure instanceof
IndexStructureInterface
) {
35
throw
new \InvalidArgumentException(
36
$className
.
' doesn\'t implement \Magento\Framework\Indexer\IndexStructureInterface'
37
);
38
}
39
40
return
$structure;
41
}
42
}
Magento\Framework\Indexer\StructureFactory\create
create($className, $arguments=[])
Definition:
StructureFactory.php:31
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Indexer\StructureFactory\$objectManager
$objectManager
Definition:
StructureFactory.php:13
Magento\Framework\Indexer
Definition:
AbstractProcessor.php:9
Magento
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\Indexer\IndexStructureInterface
Definition:
IndexStructureInterface.php:16
Magento\Framework\Indexer\StructureFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
StructureFactory.php:18
Magento\Framework\Indexer\StructureFactory
Definition:
StructureFactory.php:8
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31