<?php declare(strict_types=1);
namespace Huebert\SeoUltimate;
use Shopware\Core\Framework\Plugin;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin\Context\ActivateContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
use Shopware\Core\Framework\Plugin\Context\UpdateContext;
class HuebertSeoUltimate extends Plugin
{
public function install(InstallContext $installContext): void
{
parent::install($installContext); // TODO: Change the autogenerated stub
}
public function uninstall(UninstallContext $uninstallContext): void
{
parent::uninstall($uninstallContext);
if ($uninstallContext->keepUserData()) {
return;
}
$connection = $this->container->get(Connection::class);
$connection->executeUpdate('DROP TABLE IF EXISTS `hueb_seo_ultimate_templates`');
$connection->executeUpdate('DROP TABLE IF EXISTS `hueb_seo_ultimate_templates_saved`');
$connection->executeUpdate('DROP TABLE IF EXISTS `hueb_seo_ultimate_robot_tags`');
$connection->executeUpdate('DROP TABLE IF EXISTS `hueb_seo_ultimate_rich_snippets`');
}
public function activate(ActivateContext $activateContext): void
{
parent::activate($activateContext); // TODO: Change the autogenerated stub
}
public function deactivate(DeactivateContext $deactivateContext): void
{
parent::deactivate($deactivateContext); // TODO: Change the autogenerated stub
}
public function update(UpdateContext $updateContext): void
{
parent::update($updateContext); // TODO: Change the autogenerated stub
}
}