src/PHPDish/Bundle/ThemeBundle/Theming/ThemeFinder.php
public function find()
    {
        $finder = new Finder();
        $finder->in($this->directory)->name($this->filename)->ignoreUnreadableDirs();
        $themes = [];
        foreach ($finder as $file) {
            $theme = $this->hydrateTheme($file);
            if ($theme === false) {
                continue;
            }
            $themes[] = $theme;
        }
        return $themes;
    }
public function find()
    {
        $finder = new Finder();
        $finder->in($this->directory)->name($this->filename)->ignoreUnreadableDirs();
        $themes = [];
        foreach ($finder as $file) {
            $theme = $this->hydrateTheme($file);
            if ($theme === false) {
                continue;
            }
            $themes[] = $theme;
        }
        return $themes;
    }
查找指定目录下的所有主题

@return ThemeInterface[]