custom/plugins/citynotificationv2/src/CityNotificationV2.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace CityNotificationV2;
  3. use Shopware\Core\Framework\Plugin;
  4. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  5. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  6. class CityNotificationV2 extends Plugin
  7. {
  8.     public function install(InstallContext $context): void
  9.     {
  10.         parent::install($context);
  11.         // Plugin installation logic will be handled by migrations
  12.     }
  13.     public function uninstall(UninstallContext $context): void
  14.     {
  15.         parent::uninstall($context);
  16.         if ($context->keepUserData()) {
  17.             return;
  18.         }
  19.         // Cleanup logic if needed
  20.     }
  21. }