Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReadFactory.php
Go to the documentation of this file.
1 <?php
7 
10 
16 {
22  private $driverPool;
23 
29  public function __construct(DriverPool $driverPool)
30  {
31  $this->driverPool = $driverPool;
32  }
33 
41  public function create($path, $driver)
42  {
43  if (is_string($driver)) {
44  return new Read($path, $this->driverPool->getDriver($driver));
45  }
46  return new Read($path, $driver);
47  }
48 }