vendor/crehler/listing-banner/src/CrehlerListingBanner.php line 9

Open in your IDE?
  1. <?php
  2. namespace Crehler\ListingBanner;
  3. use Doctrine\DBAL\Connection;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  6. class CrehlerListingBanner extends Plugin
  7. {
  8.     public function uninstall(UninstallContext $uninstallContext): void
  9.     {
  10.         if($uninstallContext->keepUserData()){
  11.             parent::uninstall($uninstallContext);
  12.             return;
  13.         }
  14.         $connection $this->container->get(Connection::class);
  15.         $connection->executeUpdate('DROP TABLE IF EXISTS `crehler_banner_media`');
  16.         $connection->executeUpdate('DROP TABLE IF EXISTS `crehler_category_banner`');
  17.         $connection->executeUpdate('DROP TABLE IF EXISTS `crehler_banner`');
  18.     }
  19. }