Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PatchRegistryFactory.php
Go to the documentation of this file.
1 <?php
8 
10 
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
Definition: bootstrap.php:17
__construct(ObjectManagerInterface $objectManager, $instanceName=PatchRegistry::class)