custom/plugins/sc_CmsRevolutionSlider/src/sc_CmsRevolutionSlider.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Spline\CmsRevolutionSlider;
  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. use Spline\CmsRevolutionSlider\Util\Lifecycle\LifecycleManager;
  9. class sc_CmsRevolutionSlider extends Plugin
  10. {
  11.     public function install(InstallContext $context): void
  12.     {
  13.         $lifecycleManager = new LifecycleManager($this$this->container);
  14.         $lifecycleManager->Install($context);
  15.         parent::install($context);
  16.     }
  17.     public function uninstall(UninstallContext $context): void
  18.     {
  19.         $lifecycleManager = new LifecycleManager($this$this->container);
  20.         $lifecycleManager->Uninstall($context);
  21.         parent::uninstall($context);
  22.     }
  23.     public function activate(ActivateContext $context): void
  24.     {
  25.         $lifecycleManager = new LifecycleManager($this$this->container);
  26.         $lifecycleManager->Activate($context);
  27.         parent::activate($context);
  28.     }
  29.     public function deactivate(DeactivateContext $context): void
  30.     {
  31.         $lifecycleManager = new LifecycleManager($this$this->container);
  32.         $lifecycleManager->Deactivate($context);
  33.         parent::deactivate($context);
  34.     }
  35. }