vendor/store.shopware.com/sitcreditpass/src/SitCreditpass.php line 10

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Sit\Creditpass;
  3. use Doctrine\DBAL\Connection;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. class SitCreditpass extends Plugin {
  8.     // LIVE MODE
  9.     var $licenseUrl "https://www.shopmodul24.de/SITModuleFramework/core/SITCoreConfigurator.php";
  10.     /**
  11.      * @param ContainerBuilder $container
  12.      */
  13.     public function buildContainerBuilder $container ): void {
  14.         parent::build$container );
  15.     }
  16.     /**
  17.      * {@inheritdoc}
  18.      */
  19.     public function uninstall(UninstallContext $uninstallContext): void {
  20.         /** @var Connection $connection */
  21.         $connection $this->container->get(Connection::class);
  22.         if ( !$uninstallContext->keepUserData() ) {
  23.             $connection->executeStatement('
  24.                 DROP TABLE IF EXISTS `cp_check`;
  25.                 DROP TABLE IF EXISTS `cp_configuration`;
  26.                 DROP TABLE IF EXISTS `cp_configuration_category`;
  27.                 DROP TABLE IF EXISTS `cp_configuration_payment_method`;
  28.                 DROP TABLE IF EXISTS `cp_configuration_customer_group`;
  29.                 DROP TABLE IF EXISTS `cp_configuration_customer_group_whitelist`;
  30.                 DROP TABLE IF EXISTS `cp_configuration_customer_tag_whitelist`;
  31.             ');
  32.         }
  33.     }
  34. }