title | issue |
---|---|
Recompile theme on plugin with additional bundles |
NEXT-35121 |
- Added methods
setAdditionalBundles
andhasAdditionalBundles
to\Shopware\Storefront\Theme\StorefrontPluginConfiguration\StorefrontPluginConfiguration
- Added
KernelPluginLoader
as constructor parameter to\Shopware\Storefront\Theme\StorefrontPluginConfiguration\StorefrontPluginConfigurationFactory
- Changed method
StorefrontPluginConfigurationFactory::createFromBundle
to set if the Plugin has additionalBundles to the Configuration. - Added method
pluginPostDeactivate
for eventPluginPostDeactivateEvent
in\Shopware\Storefront\Theme\Subscriber\PluginLifecycleSubscriber
- Changed method
pluginDeactivateAndUninstall
to set stateThemeLifecycleHandler::STATE_SKIP_THEME_COMPILATION
on Plugins with additionalBundles to avoid twice compilation on deactivation. - Changed method
recompileThemesIfNecessary
in\Shopware\Storefront\Theme\ThemeLifecycleHandler
to also compile if the Plugin has additional bundles.