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

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace NetzpCalendar6;
  3. use NetzpCalendar6\Components\Installer;
  4. use NetzpCalendar6\Components\Uninstaller;
  5. use Shopware\Core\Framework\Plugin;
  6. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  7. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  8. class NetzpCalendar6 extends Plugin
  9. {
  10.     public function install(InstallContext $context): void
  11.     {
  12.         parent::install($context);
  13.         (new Installer($this->container))->install();
  14.     }
  15.     public function uninstall(UninstallContext $context): void
  16.     {
  17.         parent::uninstall($context);
  18.         $this->removeMigrations();
  19.         (new Uninstaller($this->container))->uninstall($context);
  20.     }
  21. }