Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Factory.php
Go to the documentation of this file.
1 <?php
11 
16 class Factory
17 {
21  protected $_objectManager;
22 
26  public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
27  {
28  $this->_objectManager = $objectManager;
29  }
30 
37  public function create(array $data = [])
38  {
39  return $this->_objectManager->create(\Magento\Config\Model\Config::class, $data);
40  }
41 }
$objectManager
Definition: bootstrap.php:17
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition: Factory.php:26