<?php declare(strict_types=1);
namespace HemoLauter;
use HemoLauter\bootstrap\CustomField;
use HemoLauter\bootstrap\Installer;
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 HemoLauterRegistry extends Plugin
{
public const PLUGIN_NAME = __CLASS__;
// public function install()
// {
// $this->container->set('pluginName', __CLASS__);
// }
public function install(InstallContext $context): void
{
$this->getInstaller()->install($context);
}
public function update(UpdateContext $context): void
{
$this->getInstaller()->update($context);
}
public function uninstall(UninstallContext $context): void
{
$this->getInstaller()->uninstall($context);
}
private function getInstaller(): Installer
{
return new Installer(new CustomField($this->container));
}
}