<?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\UpdateContext;
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 update(UpdateContext $context): void
{
parent::update($context);
(new Installer($this->container))->update();
}
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
$this->removeMigrations();
(new Uninstaller($this->container))->uninstall($context);
}
}