src/ThemeManager/Starter.php
private function find($file, array $requiredFields = [])
    {
        $files = $this->finder->in($this->themesFolder)->files()->name($file)->depth('<= 2')->followLinks();
        if (! empty($files)) {
            $themes = [];
            /* @var $file SplFileInfo */
            foreach ($files as $file) {
                $path = rtrim($file->getPath(), DIRECTORY_SEPARATOR);
                if (! empty($path) && file_exists($file)) {
                    $this->addTheme($themes, $path, $file, $requiredFields);
                }
            }

            $this->themes = array_merge($this->themes, $themes);
        }
    }
private function find($file, array $requiredFields = [])
    {
        $files = $this->finder->in($this->themesFolder)->files()->name($file)->depth('<= 2')->followLinks();
        if (! empty($files)) {
            $themes = [];
            /* @var $file SplFileInfo */
            foreach ($files as $file) {
                $path = rtrim($file->getPath(), DIRECTORY_SEPARATOR);
                if (! empty($path) && file_exists($file)) {
                    $this->addTheme($themes, $path, $file, $requiredFields);
                }
            }

            $this->themes = array_merge($this->themes, $themes);
        }
    }
@param        $file
@param array  $requiredFields

@return array