<?php declare(strict_types=1);
namespace NetzpStaging6;
use NetzpStaging6\Components\Installer;
use NetzpStaging6\Components\Uninstaller;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class NetzpStaging6 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);
}
}