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