Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 1.01 KB

2024-04-16-recompile-on-plugins-with-additional-bundles.md

File metadata and controls

11 lines (11 loc) · 1.01 KB
title issue
Recompile theme on plugin with additional bundles
NEXT-35121

Storefront

  • Added methods setAdditionalBundles and hasAdditionalBundles 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 event PluginPostDeactivateEvent in \Shopware\Storefront\Theme\Subscriber\PluginLifecycleSubscriber
  • Changed method pluginDeactivateAndUninstall to set state ThemeLifecycleHandler::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.