47 $this->_moduleReader = $moduleReader;
53 public function get($filename, $scope)
59 foreach ($directory->search(
'{' . $filename .
',*/' . $filename .
'}') as
$path) {
60 $absolutePaths[] = $directory->getAbsolutePath(
$path);
62 $iterator = $this->iteratorFactory->create($absolutePaths);
65 $iterator = $this->_moduleReader->getConfigurationFiles($filename);
68 $iterator = $this->_moduleReader->getConfigurationFiles($scope .
'/' . $filename);
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\Config\FileIteratorFactory $iteratorFactory)