<?php declare(strict_types=1);
namespace Wexo\GreenAlternatives;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
/**
* Class WexoGreenAlternatives
* @package Wexo\GreenAlternatives
*/
class WexoGreenAlternatives extends Plugin
{
public function uninstall(UninstallContext $uninstallContext): void
{
parent::uninstall($uninstallContext);
if ($uninstallContext->keepUserData() !== true) {
$connection = $this->container->get(Connection::class);
$connection->executeStatement('DROP TABLE IF EXISTS `wexo_product_green_alternative`');
}
}
}