vendor/store.shopware.com/hatslogicswsearchkeywordhistory/src/HatslogicSwSearchKeywordHistory.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. /**
  3.  * (c) 2Hats Logic Solutions <info@2hatslogic.com>
  4.  */
  5. namespace Hatslogic\Sw\SearchKeywordHistory;
  6. use Shopware\Core\Framework\Plugin;
  7. use Doctrine\DBAL\Connection;
  8. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  9. class HatslogicSwSearchKeywordHistory extends Plugin 
  10. {
  11.     public function uninstall(UninstallContext $context): void
  12.     {
  13.         parent::uninstall($context);
  14.         if ($context->keepUserData()) {
  15.             return;
  16.         }
  17.         $connection $this->container->get(Connection::class);
  18.         $connection->executeUpdate('DROP TABLE IF EXISTS `s_plugin_hatslogic_search_keywords`');
  19.     }
  20. }