<?php declare(strict_types=1);
namespace Cogi\FreeProducts;
use Shopware\Core\Framework\Plugin;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class CogiFreeProducts extends Plugin
{
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
if ($context->keepUserData()) {
return;
}
$connection = $this->container->get(Connection::class);
$connection->exec('DROP TABLE IF EXISTS `cogi_free_products`');
}
}