<?php declare (strict_types = 1);
/**
* (c) by Bardahl Shopware
*/
namespace Bardahl\PriceRuleImport;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Bardahl\PriceRuleImport\Setup\Installer;
use Bardahl\PriceRuleImport\Setup\Uninstaller;
use Shopware\Core\Framework\Plugin;
use Doctrine\DBAL\Connection;
class PriceRuleImport extends Plugin
{
/**
* @param InstallContext $context
*/
public function install(InstallContext $installContext): void
{
$installer = new Installer(
$this->container->get(Connection::class),
$this->container
);
$installer->install();
}
public function uninstall(UninstallContext $context): void
{
$unInstaller = new Uninstaller(
$this->container->get(Connection::class),
$this->container
);
$unInstaller->uninstall($context);
}
}