Skip to content

Commit d7155c4

Browse files
author
Christoph Wittstock
committed
Cache beim Deinstallieren des deaktivierten Plugins unterbinden.
1 parent 73ab9e0 commit d7155c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

NetzhirschRemoveNoteAdvanced.php

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Shopware\Bundle\CookieBundle\CookieGroupCollection;
88
use Shopware\Bundle\CookieBundle\Structs\CookieGroupStruct;
99
use Shopware\Components\Plugin;
10+
use Shopware\Components\Plugin\Context\UninstallContext;
1011

1112
class NetzhirschRemoveNoteAdvanced extends Plugin
1213
{
@@ -61,4 +62,11 @@ private function getPluginDir() {
6162

6263
return $pluginDir;
6364
}
65+
66+
public function uninstall(UninstallContext $context)
67+
{
68+
if ($context->getPlugin()->getActive()) {
69+
$context->scheduleClearCache(UninstallContext::CACHE_LIST_DEFAULT);
70+
}
71+
}
6472
}

0 commit comments

Comments
 (0)