<?php declare(strict_types=1);
namespace MoorlFormBuilderRegistration;
use Doctrine\DBAL\Connection;
use MoorlFoundation\Core\PluginFoundation;
use Shopware\Core\Framework\Uuid\Uuid;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
class MoorlFormBuilderRegistration extends Plugin
{
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
if ($context->keepUserData()) {
return;
}
/* @var $foundation PluginFoundation */
$foundation = $this->container->get(PluginFoundation::class);
$foundation->setContext($context->getContext());
$foundation->dropTables([
'moorl_fb_customer_upload'
]);
}
}