<?php declare(strict_types=1);
namespace Ultra\Styler;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UpdateContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Shopware\Core\System\SystemConfig\SystemConfigService;
class UltraStyler extends Plugin {
public function install(InstallContext $context): void {
}
public function update(UpdateContext $context): void {
}
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 "%UltraStyler.config%"');
}
}