<?php declare(strict_types=1);
namespace Verign\VerignFeedback;
use Doctrine\DBAL\Connection; //probably needed
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class VerignFeedback extends Plugin
{
public function install(InstallContext $installContext): void
{
//mail template logic goes here
parent::install($installContext);
}
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
if ($context->keepUserData()) {
return;
}
$connection = $this->container->get(Connection::class);
$connection->executeStatement('DROP TABLE IF EXISTS `verign_feedback`');
}
}