custom/plugins/HuebertSeoUltimate/src/HuebertSeoUltimate.php line 14

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Huebert\SeoUltimate;
  3. use Shopware\Core\Framework\Plugin;
  4. use Doctrine\DBAL\Connection;
  5. use Shopware\Core\Framework\Plugin\Context\ActivateContext;
  6. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  7. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  8. use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
  9. use Shopware\Core\Framework\Plugin\Context\UpdateContext;
  10. class HuebertSeoUltimate extends Plugin
  11. {
  12.     public function install(InstallContext $installContext): void
  13.     {
  14.         parent::install($installContext); // TODO: Change the autogenerated stub
  15.     }
  16.     public function uninstall(UninstallContext $uninstallContext): void
  17.     {
  18.         parent::uninstall($uninstallContext);
  19.         if ($uninstallContext->keepUserData()) {
  20.             return;
  21.         }
  22.         $connection $this->container->get(Connection::class);
  23.         $connection->executeUpdate('DROP TABLE IF EXISTS `hueb_seo_ultimate_templates`');
  24.         $connection->executeUpdate('DROP TABLE IF EXISTS `hueb_seo_ultimate_templates_saved`');
  25.         $connection->executeUpdate('DROP TABLE IF EXISTS `hueb_seo_ultimate_robot_tags`');
  26.         $connection->executeUpdate('DROP TABLE IF EXISTS `hueb_seo_ultimate_rich_snippets`');
  27.     }
  28.     public function activate(ActivateContext $activateContext): void
  29.     {
  30.         parent::activate($activateContext); // TODO: Change the autogenerated stub
  31.     }
  32.     public function deactivate(DeactivateContext $deactivateContext): void
  33.     {
  34.         parent::deactivate($deactivateContext); // TODO: Change the autogenerated stub
  35.     }
  36.     public function update(UpdateContext $updateContext): void
  37.     {
  38.         parent::update($updateContext); // TODO: Change the autogenerated stub
  39.     }
  40. }