<?php declare(strict_types=1);
namespace NotFalse\Import;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\ActivateContext;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Shopware\Core\Framework\Plugin\Context\UpdateContext;
class NotFalseImport extends Plugin
{
public function install(InstallContext $installContext): void
{
//
}
public function update(UpdateContext $updateContext): void
{
//
}
public function activate(ActivateContext $activateContext): void
{
parent::activate($activateContext);
}
public function uninstall(UninstallContext $uninstallContext): void
{
parent::uninstall($uninstallContext);
if ($uninstallContext->keepUserData()) {
return;
}
/** @var Connection $connection */
$connection = $this->container->get(Connection::class);
$connection->executeStatement("DROP TABLE `notfalse_import`");
}
}