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
SaveHandlerFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Indexer
;
7
8
use
Magento\Framework\ObjectManagerInterface
;
9
use
Magento\Framework\Indexer\SaveHandler\IndexerInterface
as SaveHandlerInterface;
10
15
class
SaveHandlerFactory
16
{
20
protected
$objectManager
;
21
25
public
function
__construct
(
ObjectManagerInterface
$objectManager
)
26
{
27
$this->objectManager =
$objectManager
;
28
}
29
38
public
function
create
($saveHandlerClass,
$arguments
= [])
39
{
40
$handler
= $this->objectManager->create($saveHandlerClass,
$arguments
);
41
if
(!
$handler
instanceof SaveHandlerInterface) {
42
throw
new \InvalidArgumentException(
43
$saveHandlerClass .
' doesn\'t implement \Magento\Framework\IndexerInterface'
44
);
45
}
46
47
return
$handler
;
48
}
49
}
Magento\Framework\Indexer\SaveHandlerFactory
Definition:
SaveHandlerFactory.php:15
Magento\Framework\Indexer\SaveHandlerFactory\__construct
__construct(ObjectManagerInterface $objectManager)
Definition:
SaveHandlerFactory.php:25
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Indexer\SaveHandlerFactory\create
create($saveHandlerClass, $arguments=[])
Definition:
SaveHandlerFactory.php:38
Magento\Framework\Indexer\SaveHandlerFactory\$objectManager
$objectManager
Definition:
SaveHandlerFactory.php:20
Magento\Framework\Indexer
Definition:
AbstractProcessor.php:9
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\Indexer\SaveHandler\IndexerInterface
Definition:
IndexerInterface.php:20
$handler
catch(\Exception $e) $handler
Definition:
index.php:30