<?php declare(strict_types=1);
namespace AmMacTradeCustomPlugins;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Shopware\Core\Framework\DataAbstractionLayer\EntityRepository;
use AmMacTradeCustomPlugins\Setup\Installer;
use AmMacTradeCustomPlugins\Setup\Uninstaller;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class AmMacTradeCustomPlugins extends Plugin
{
public function install(InstallContext $installContext): void
{
parent::install($installContext);
$installer = new Installer($this->container);
$installer->install($installContext);
}
public function uninstall(Uninstallcontext $uninstallContext): void
{
parent::uninstall($uninstallContext);
$uninstaller = new Uninstaller($this->container);
$uninstaller->uninstall($uninstallContext);
}
}