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