Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConfigFactory.php
Go to the documentation of this file.
1 <?php
8 
13 {
19  protected $objectManager = null;
20 
26  protected $instanceName = null;
27 
34  public function __construct(
36  $instanceName = \Magento\Framework\View\Page\Config::class
37  ) {
38  $this->objectManager = $objectManager;
39  $this->instanceName = $instanceName;
40  }
41 
48  public function create(array $data = [])
49  {
50  return $this->objectManager->create($this->instanceName, $data);
51  }
52 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\View\Page\Config::class)