Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
deletePluginConfiguration example
$this
->eventDispatcher->
dispatch
(
new
PluginPreUninstallEvent
(
$plugin
,
$uninstallContext
)
)
;
if
(
!
$shopwareContext
->
hasState
(
self::STATE_SKIP_ASSET_BUILDING
)
)
{
$this
->assetInstaller->
removeAssetsOfBundle
(
$pluginBaseClassString
)
;
}
$pluginBaseClass
->
uninstall
(
$uninstallContext
)
;
if
(
!
$uninstallContext
->
keepUserData
(
)
)
{
$pluginBaseClass
->
removeMigrations
(
)
;
$this
->systemConfigService->
deletePluginConfiguration
(
$pluginBaseClass
)
;
}
$pluginId
=
$plugin
->
getId
(
)
;
$this
->
updatePluginData
(
[
'id' =>
$pluginId
,
'active' => false,
'installedAt' => null,
]
,
$shopwareContext
)
;