60 private $directoryList;
78 $this->directoryList = $directoryList;
82 $this->area = $designInterface->
getArea();
90 public function get($filename, $scope)
94 $iterator = $this->moduleReader->getConfigurationFiles($filename)->toArray();
95 $themeConfigFile = $this->currentTheme->getCustomization()->getCustomViewConfigPath();
97 && $this->rootDirectory->isExist($this->rootDirectory->getRelativePath($themeConfigFile))
99 $iterator[$this->rootDirectory->getRelativePath($themeConfigFile)] =
100 $this->rootDirectory->readFile(
101 $this->rootDirectory->getRelativePath(
106 $designPath = $this->resolver->resolve(
112 if (file_exists($designPath)) {
114 $designDom = new \DOMDocument();
115 $designDom->load($designPath);
116 $iterator[$designPath] = $designDom->saveXML();
118 throw new \Magento\Framework\Exception\LocalizedException(
126 $iterator = $this->iteratorFactory->create([]);
139 $iterator = $this->moduleReader->getConfigurationFiles($filename)->toArray();
140 $designPath = $this->resolver->resolve(
147 if (file_exists($designPath)) {
149 $iterator = $this->getParentConfigs($this->currentTheme, []);
151 throw new \Magento\Framework\Exception\LocalizedException(
158 $iterator = $this->iteratorFactory->create([]);
176 $parentDesignPath = $this->resolver->resolve(
183 $parentDom = new \DOMDocument();
184 $parentDom->load($parentDesignPath);
getParents($filename, $scope)
__construct(DirReader $moduleReader, FileIteratorFactory $iteratorFactory, DesignInterface $designInterface, DirectoryList $directoryList, Filesystem $filesystem, ResolverInterface $resolver)