<?php declare(strict_types=1);
namespace Ultra\Footer\Tuner\Pro\Modul\One;
use Shopware\Core\Framework\Plugin;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\ActivateContext;
use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Shopware\Core\Framework\Plugin\Context\UpdateContext;
class UltraFooterTunerProModulOne extends Plugin
{
public function install(InstallContext $context): void
{
}
public function activate(ActivateContext $context): void
{
}
public function update(UpdateContext $context): void
{
$connection = $this->container->get(Connection::class);
$connection->executeUpdate('UPDATE system_config SET configuration_key = REPLACE(configuration_key,"ultrafootertunerpromodulone","UltraFooterTunerProModulOne")');
}
public function deactivate(DeactivateContext $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 "UltraFooterTunerProModulOne%"');
}
}