<?php declare(strict_types=1);
namespace Sit\Creditpass;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class SitCreditpass extends Plugin {
// LIVE MODE
var $licenseUrl = "https://www.shopmodul24.de/SITModuleFramework/core/SITCoreConfigurator.php";
/**
* @param ContainerBuilder $container
*/
public function build( ContainerBuilder $container ): void {
parent::build( $container );
}
/**
* {@inheritdoc}
*/
public function uninstall(UninstallContext $uninstallContext): void {
/** @var Connection $connection */
$connection = $this->container->get(Connection::class);
if ( !$uninstallContext->keepUserData() ) {
$connection->executeStatement('
DROP TABLE IF EXISTS `cp_check`;
DROP TABLE IF EXISTS `cp_configuration`;
DROP TABLE IF EXISTS `cp_configuration_category`;
DROP TABLE IF EXISTS `cp_configuration_payment_method`;
DROP TABLE IF EXISTS `cp_configuration_customer_group`;
DROP TABLE IF EXISTS `cp_configuration_customer_group_whitelist`;
DROP TABLE IF EXISTS `cp_configuration_customer_tag_whitelist`;
');
}
}
}