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
Setup
Patch
PatchRegistryFactory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Setup\Patch
;
8
9
use
Magento\Framework\ObjectManagerInterface
;
10
14
class
PatchRegistryFactory
15
{
19
private
$objectManager;
20
24
private
$instanceName;
25
30
public
function
__construct
(
31
ObjectManagerInterface
$objectManager,
32
$instanceName = PatchRegistry::class
33
) {
34
35
$this->objectManager =
$objectManager
;
36
$this->instanceName = $instanceName;
37
}
38
42
public
function
create
()
43
{
44
return
$this->objectManager->create($this->instanceName);
45
}
46
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Setup\Patch
Definition:
DataPatchInterface.php:6
Magento\Framework\Setup\Patch\PatchRegistryFactory\__construct
__construct(ObjectManagerInterface $objectManager, $instanceName=PatchRegistry::class)
Definition:
PatchRegistryFactory.php:30
Magento\Framework\Setup\Patch\PatchRegistryFactory\create
create()
Definition:
PatchRegistryFactory.php:42
Magento\Framework\Setup\Patch\PatchRegistryFactory
Definition:
PatchRegistryFactory.php:14