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
---
- Added paramdter
$keepUserData
to methodShopware\Core\Framework\Store\Services\AbstractStoreAppLifecycleService::uninstallExtension()
. - Added parameter
$keepUserData
to methodShopware\Core\Framework\Store\Services\StoreAppLifecycleService::uninstallExtension()
. - Added parameter
$keepUserData
to methodShopware\Core\Framework\App\Lifecycle\AbstractAppLifecycle::delete()
. - Added parameter
$keepUserData
to methodShopware\Core\Framework\App\Lifecycle\AppLifecycle::delete()
. - Added parameter
$keepUserData
to methodShopware\Core\Framework\App\Lifecycle\RefreshableAppDryRun::delete()
. - Added parameter
$keepUserData
to methodShopware\Core\Framework\App\Event\AppDeletedEvent::__construct()
. - Added method
Shopware\Core\Framework\App\Event\AppDeletedEvent.php::keepUserData()
. - Added option
keep-user-data
toShopware\Core\Framework\App\Command\UninstallAppCommand
. - Changed method
Shopware\Core\Framework\Store\Services\ExtensionLifecycleService::uninstall
to pass$keepUserData
to theStoreAppLifecycleService
. - Changed method
Shopware\Core\Framework\Store\Services\StoreAppLifecycleService::uninstallExtension
to pass$keepUserData
to theAppLifecycle
. - Changed method
Shopware\Core\Framework\App\Lifecycle\AppLifecycle::delete
to pass$keepUserData
to methodremoveAppAndRole()
.
- Added method
Shopware\Storefront\Theme\ThemeLifecycleService::removeTheme()
to remove theme data. - Added subscriber
Shopware\Storefront\Theme\Subscriber\AppLifecycleSubscriber
to handle theme data removal onAppDeletedEvent
. - Added method
Shopware\Storefront\Theme\Subscriber\PluginLifecycleSubscriber::pluginPostUninstall()
to handle theme data removal onPluginPostUninstallEvent
.