custom/plugins/AtlProductConfigurator/src/AtlProductConfigurator.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Atl\ProductConfigurator;
  3. use Doctrine\DBAL\Connection;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  6. class AtlProductConfigurator extends Plugin
  7. {
  8.     public function uninstall(UninstallContext $uninstallContext): void
  9.     {
  10.         parent::uninstall($uninstallContext);
  11.         if ($uninstallContext->keepUserData()) {
  12.             return;
  13.         }
  14.         $connection $this->container->get(Connection::class);
  15.         $connection->executeStatement("DROP TABLE IF EXISTS `atl_product_extension`");
  16.         $connection->executeStatement("DROP TABLE IF EXISTS `atl_product_configurator_field_translation`");
  17.         $connection->executeStatement("DROP TABLE IF EXISTS `atl_product_configurator_field`");
  18.         $connection->executeStatement("DROP TABLE IF EXISTS `atl_product_configurator_translation`");
  19.         $connection->executeStatement("DROP TABLE IF EXISTS `atl_product_configurator`");
  20.     }
  21. }