<?php declare(strict_types=1);
namespace Tonur\GreetingCard;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class TonurGreetingCard extends Plugin
{
public const BUNDLE_NAME = 'TonurGreetingCard';
public function uninstall(UninstallContext $uninstallContext): void
{
parent::uninstall($uninstallContext);
if ($uninstallContext->keepUserData()) {
return;
}
$connection = $this->container->get(Connection::class);
$connection->executeStatement('DROP TABLE IF EXISTS `repertus_greeting_card`');
}
}