<?php declare(strict_types=1);
namespace Sven\Sven_dasPopUp;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class Sven_dasPopUp extends Plugin
{
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
if ($context->keepUserData()) {
return;
}
$connection = $this->container->get(Connection::class);
$connection->executeUpdate('DELETE FROM `system_config` WHERE configuration_key LIKE "%Sven_dasPopUp.config%"');
}
}