Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ExcelFactory.php
Go to the documentation of this file.
1 <?php
7 
9 
11 {
15  protected $objectManager;
16 
20  protected $instanceName;
21 
26  public function __construct(
28  $instanceName = \Magento\Framework\Convert\Excel::class
29  ) {
30  $this->objectManager = $objectManager;
31  $this->instanceName = $instanceName;
32  }
33 
40  public function create(array $data = [])
41  {
42  return $this->objectManager->create($this->instanceName, $data);
43  }
44 }
__construct(ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\Convert\Excel::class)