Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FileResolver.php
Go to the documentation of this file.
1 <?php
9 
13 
15 {
19  protected $iteratorFactory;
20 
24  protected $dirSearch;
25 
32  public function __construct(
35  ) {
36  $this->iteratorFactory = $iteratorFactory;
37  $this->dirSearch = $dirSearch;
38  }
39 
43  public function get($filename, $scope)
44  {
45  $iterator = $this->iteratorFactory->create(
46  $this->dirSearch->collectFiles(ComponentRegistrar::MODULE, 'etc/' . $filename)
47  );
48  return $iterator;
49  }
50 }
__construct(FileIteratorFactory $iteratorFactory, DirSearch $dirSearch)