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

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Staw\Cdn;
  3. use Shopware\Core\Framework\Plugin;
  4. use Shopware\Core\Framework\Plugin\Context\ActivateContext;
  5. use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
  6. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  7. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  8. class StawCdn extends Plugin
  9. {
  10.     public function install(InstallContext $installContext): void
  11.     {
  12.         parent::install($installContext);
  13.     }
  14.     public function uninstall(UninstallContext $context): void
  15.     {
  16.         //Keep UserData? Then do nothing here
  17.         if ($context->keepUserData()) {
  18.             return;
  19.         }
  20.     }
  21.     public function activate(ActivateContext $context): void
  22.     {
  23.         parent::activate($context);
  24.     }
  25.     public function deactivate(DeactivateContext $context): void
  26.     {
  27.         parent::deactivate($context);
  28.     }
  29. }