<?php declare(strict_types=1);
namespace hemo;
use hemo\bootstrap\CustomField;
use hemo\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 HemoSlider extends Plugin
{
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));
}
}