<?php declare(strict_types=1);
namespace NetzpEvents6;
use NetzpEvents6\Components\Installer;
use NetzpEvents6\Components\Uninstaller;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class NetzpEvents6 extends Plugin
{
public function install(InstallContext $context): void
{
parent::install($context);
(new Installer($this->container))->install();
}
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
$this->removeMigrations();
(new Uninstaller($this->container))->uninstall($context);
}
}