Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractFactory.php
Go to the documentation of this file.
1 <?php
7 
8 abstract class AbstractFactory
9 {
13  protected $objectManager;
14 
18  const INSTANCE_NAME = '';
19 
24  {
25  $this->objectManager = $objectManager;
26  }
27 
34  public function create(array $data = [])
35  {
36  return $this->objectManager->create(static::INSTANCE_NAME, $data);
37  }
38 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)