46 private $componentRegistrar;
63 $this->libraryDirectory =
$filesystem->getDirectoryRead(
67 $this->readFactory = $readFactory;
80 $list = $this->fileListFactory->create(\
Magento\Framework\Css\PreProcessor\
File\FileList\Collator::class);
81 $files = $this->libraryDirectory->search($filePath);
84 foreach (
$theme->getInheritedThemes() as $currentTheme) {
85 $themeFullPath = $currentTheme->getFullPath();
86 $path = $this->componentRegistrar->getPath(
93 $directoryRead = $this->readFactory->create(
$path);
94 $foundFiles = $directoryRead->search(
"web/{$filePath}");
97 return $list->getAll();
109 foreach (
$files as $file) {
111 $result[] = $this->fileFactory->create($filename,
false,
$theme);
createFiles(ReadInterface $reader, ThemeInterface $theme, $files)
getAbsolutePath($path=null)
getFiles(ThemeInterface $theme, $filePath)
foreach($appDirs as $dir) $files
__construct(\Magento\Framework\View\File\FileList\Factory $fileListFactory, Filesystem $filesystem, \Magento\Framework\View\File\Factory $fileFactory, \Magento\Framework\Filesystem\Directory\ReadFactory $readFactory, ComponentRegistrarInterface $componentRegistrar)