28 private $readDirFactory;
33 private $componentRegistrar;
49 FileFactory $fileFactory,
54 $this->fileFactory = $fileFactory;
55 $this->readDirFactory = $readDirFactory;
57 $this->subDir = $subDir ? $subDir .
'/' :
'';
70 $themePath =
$theme->getFullPath();
71 if (empty($themePath)) {
74 $themeAbsolutePath = $this->componentRegistrar->getPath(ComponentRegistrar::THEME, $themePath);
75 if (!$themeAbsolutePath) {
78 $themeDir = $this->readDirFactory->create($themeAbsolutePath);
79 $files = $themeDir->search($this->subDir . $filePath);
81 foreach (
$files as $file) {
82 $filename = $themeDir->getAbsolutePath($file);
getFiles(ThemeInterface $theme, $filePath)
__construct(FileFactory $fileFactory, ReadFactory $readDirFactory, ComponentRegistrarInterface $componentRegistrar, $subDir='')
foreach($appDirs as $dir) $files