custom/plugins/HemoCheckoutStepper/src/HemoCheckoutStepper.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace HemoCheckoutStepper;
  3. use HemoCheckoutStepper\Bootstrap\Installer;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\ActivateContext;
  6. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  7. use Shopware\Core\Framework\Plugin\Context\UpdateContext;
  8. class HemoCheckoutStepper extends Plugin
  9. {
  10.     public function install(InstallContext $installContext): void
  11.     {
  12.         parent::install($installContext);
  13.         (new Installer($this->container))->install($installContext);
  14.     }
  15.     public function activate(ActivateContext $activateContext): void
  16.     {
  17.         parent::activate($activateContext);
  18.         (new Installer($this->container))->activate($activateContext);
  19.     }
  20.     public function update(UpdateContext $updateContext): void
  21.     {
  22.         parent::update($updateContext);
  23.         (new Installer($this->container))->update($updateContext);
  24.     }
  25. }