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

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Nimbits\NimbitsLazyLoadingNext;
  3. use Shopware\Core\Framework\Plugin;
  4. use Shopware\Core\Framework\Context;
  5. use Shopware\Core\Framework\Plugin\Context\ActivateContext;
  6. use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
  7. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  8. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  9. use Shopware\Core\Framework\CustomField\CustomFieldTypes;
  10. use Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface;
  11. use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
  12. use Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\EqualsFilter;
  13. use Shopware\Core\Framework\DataAbstractionLayer\Search\IdSearchResult;
  14. use Shopware\Core\System\SystemConfig\SystemConfigDefinition;
  15. use Doctrine\DBAL\Connection;
  16. use Shopware\Core\Framework\Uuid\Uuid;
  17. use Shopware\Core\Defaults;
  18. use Nimbits\NimbitsLazyLoadingNext\Schema\SchemaUpgrade;
  19. class NimbitsLazyLoadingNext extends Plugin
  20. {
  21.     public function activate(ActivateContext $context): void
  22.     {
  23.         parent::activate($context);
  24.         
  25.         SchemaUpgrade::activate($context$this->container);
  26.     }
  27.     
  28.     public function deactivate(DeactivateContext $context): void
  29.     {
  30.         parent::deactivate($context);
  31.         
  32.         SchemaUpgrade::deactivate($context$this->container);
  33.     }
  34.     
  35.     public function install(InstallContext $context): void
  36.     {
  37.         parent::install($context);
  38.         
  39.         SchemaUpgrade::install($context$this->container);
  40.     }
  41.     
  42.     public function uninstall(UninstallContext $context): void
  43.     {
  44.         parent::uninstall($context);
  45.         SchemaUpgrade::uninstall($context$this->container);
  46.     }
  47.     
  48. }