Skip to content

Latest commit

 

History

History
22 lines (22 loc) · 1.83 KB

2021-04-29-fix-removal-of-theme-data-on-extension-uninstall.md

File metadata and controls

22 lines (22 loc) · 1.83 KB
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 3 column 16
---
title: Fix removal of theme data on extension uninstall
issue: NEXT-14937
author_github: @Dominik28111
---

Core

  • Added paramdter $keepUserData to method Shopware\Core\Framework\Store\Services\AbstractStoreAppLifecycleService::uninstallExtension().
  • Added parameter $keepUserData to method Shopware\Core\Framework\Store\Services\StoreAppLifecycleService::uninstallExtension().
  • Added parameter $keepUserData to method Shopware\Core\Framework\App\Lifecycle\AbstractAppLifecycle::delete().
  • Added parameter $keepUserData to method Shopware\Core\Framework\App\Lifecycle\AppLifecycle::delete().
  • Added parameter $keepUserData to method Shopware\Core\Framework\App\Lifecycle\RefreshableAppDryRun::delete().
  • Added parameter $keepUserData to method Shopware\Core\Framework\App\Event\AppDeletedEvent::__construct().
  • Added method Shopware\Core\Framework\App\Event\AppDeletedEvent.php::keepUserData().
  • Added option keep-user-data to Shopware\Core\Framework\App\Command\UninstallAppCommand.
  • Changed method Shopware\Core\Framework\Store\Services\ExtensionLifecycleService::uninstall to pass $keepUserData to the StoreAppLifecycleService.
  • Changed method Shopware\Core\Framework\Store\Services\StoreAppLifecycleService::uninstallExtension to pass $keepUserData to the AppLifecycle.
  • Changed method Shopware\Core\Framework\App\Lifecycle\AppLifecycle::delete to pass $keepUserData to method removeAppAndRole().

Storefront

  • Added method Shopware\Storefront\Theme\ThemeLifecycleService::removeTheme() to remove theme data.
  • Added subscriber Shopware\Storefront\Theme\Subscriber\AppLifecycleSubscriber to handle theme data removal on AppDeletedEvent.
  • Added method Shopware\Storefront\Theme\Subscriber\PluginLifecycleSubscriber::pluginPostUninstall() to handle theme data removal on PluginPostUninstallEvent.