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

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace NetzpEvents6;
  3. use NetzpEvents6\Components\Installer;
  4. use NetzpEvents6\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 NetzpEvents6 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. }