Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TemporaryStorageFactory.php
Go to the documentation of this file.
1 <?php
7 
9 
20 {
26  protected $objectManager = null;
27 
33  protected $instanceName = null;
34 
41  public function __construct(
43  $instanceName = \Magento\Framework\Search\Adapter\Mysql\TemporaryStorage::class
44  ) {
45  $this->objectManager = $objectManager;
46  $this->instanceName = $instanceName;
47  }
48 
55  public function create(array $data = [])
56  {
57  return $this->objectManager->create($this->instanceName, $data);
58  }
59 }
__construct(ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\Search\Adapter\Mysql\TemporaryStorage::class)