custom/plugins/PayrexxPaymentGatewaySW6/src/PayrexxPaymentGatewaySW6.php line 22

  1. <?php
  2. declare(strict_types=1);
  3. namespace PayrexxPaymentGateway;
  4. use PayrexxPaymentGateway\Installer\PayrexxPaymentInstaller;
  5. use Shopware\Core\Framework\Plugin;
  6. use Shopware\Core\Framework\Context;
  7. use Shopware\Core\Framework\Uuid\Uuid;
  8. use Shopware\Core\Content\Media\MediaEntity;
  9. use Shopware\Core\Content\Media\File\FileSaver;
  10. use Shopware\Core\Content\Media\File\MediaFile;
  11. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  12. use Shopware\Core\Framework\Plugin\Context\ActivateContext;
  13. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  14. use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
  15. use Shopware\Core\Framework\Plugin\Context\UpdateContext;
  16. use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
  17. use Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\EqualsFilter;
  18. class PayrexxPaymentGatewaySW6 extends Plugin
  19. {
  20.     /**
  21.      * @param InstallContext $context
  22.      */
  23.     public function install(InstallContext $context): void
  24.     {
  25.         (new PayrexxPaymentInstaller($this->container))->install($context);
  26.         parent::install($context);
  27.     }
  28.     /**
  29.      * @param UninstallContext $context
  30.      */
  31.     public function uninstall(UninstallContext $context): void
  32.     {
  33.         (new PayrexxPaymentInstaller($this->container))->uninstall($context);
  34.         parent::uninstall($context);
  35.     }
  36.     /**
  37.      * @param ActivateContefxt $context
  38.      */
  39.     public function activate(ActivateContext $context): void
  40.     {
  41.         (new PayrexxPaymentInstaller($this->container))->activate($context);
  42.         parent::activate($context);
  43.     }
  44.     /**
  45.      * @param DeactivateContext $context
  46.      */
  47.     public function deactivate(DeactivateContext $context): void
  48.     {
  49.         (new PayrexxPaymentInstaller($this->container))->deactivate($context);
  50.         parent::deactivate($context);
  51.     }
  52.     /**
  53.      * @param UpdateContext $context
  54.      */
  55.     public function update(UpdateContext $context): void
  56.     {
  57.         (new PayrexxPaymentInstaller($this->container))->update($context);
  58.         parent::update($context);
  59.     }
  60. }