custom/plugins/HemoSlider/src/HemoSlider.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace hemo;
  3. use hemo\bootstrap\CustomField;
  4. use hemo\bootstrap\Installer;
  5. use Shopware\Core\Framework\Plugin;
  6. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  7. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  8. use Shopware\Core\Framework\Plugin\Context\UpdateContext;
  9. class HemoSlider extends Plugin
  10. {
  11.     public function install(InstallContext $context): void
  12.     {
  13.         $this->getInstaller()->install($context);
  14.     }
  15.     public function update(UpdateContext $context): void
  16.     {
  17.         $this->getInstaller()->update($context);
  18.     }
  19.     public function uninstall(UninstallContext $context): void
  20.     {
  21.         $this->getInstaller()->uninstall($context);
  22.     }
  23.     private function getInstaller(): Installer
  24.     {
  25.         return new Installer(new CustomField($this->container));
  26.     }
  27. }