private readonly EntityRepository
$themeChildRepository,
private readonly Connection
$connection,
private readonly ?AbstractStorefrontPluginConfigurationFactory
$pluginConfigurationFactory ) { } public function refreshThemes( Context
$context,
?StorefrontPluginConfigurationCollection
$configurationCollection = null
): void
{ if ($configurationCollection === null
) { $configurationCollection =
$this->pluginRegistry->
getConfigurations()->
getThemes();
} // iterate over all theme configs in the filesystem (plugins/bundles)
foreach ($configurationCollection as $config) { $this->
refreshTheme($config,
$context);
} } public function refreshTheme(StorefrontPluginConfiguration
$configuration, Context
$context): void
{ $themeData =
[];