$scriptPath =
$path . \DIRECTORY_SEPARATOR . 'Resources/app/storefront/dist/storefront/js';
$config->
setScriptFiles(FileCollection::
createFromArray($this->
getFilesInDir($scriptPath)));
return $config;
} private function createThemeConfig(string
$name, string
$path): StorefrontPluginConfiguration
{ $pathname =
$path . \DIRECTORY_SEPARATOR . 'Resources/theme.json';
if (!
file_exists($pathname)) { throw new InvalidThemeBundleException($name);
} try { $fileContent =
file_get_contents($pathname);
if ($fileContent === false
) { throw new ThemeCompileException( $name,
'Unable to read theme.json'
);
}