Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FileIteratorFactory.php
Go to the documentation of this file.
1 <?php
8 
14 {
18  private $fileReadFactory;
19 
25  public function __construct(\Magento\Framework\Filesystem\File\ReadFactory $fileReadFactory)
26  {
27  $this->fileReadFactory = $fileReadFactory;
28  }
29 
36  public function create($paths)
37  {
38  return new FileIterator($this->fileReadFactory, $paths);
39  }
40 }
$paths
Definition: _bootstrap.php:83
__construct(\Magento\Framework\Filesystem\File\ReadFactory $fileReadFactory)