<?php declare(strict_types=1);
namespace Webcellent\InternalLinks;
use Shopware\Core\Framework\Plugin;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class WebcellentInternalLinks extends Plugin
{
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 `webcellent_internal_links` ');
}
}