custom/plugins/BrandCrockWhatsappChat/src/BrandCrockWhatsappChat.php line 25

Open in your IDE?
  1. <?php
  2. /**
  3.  * To plugin Bootstrap file.
  4.  *
  5.  * Copyright (C) BrandCrock GmbH. All rights reserved
  6.  *
  7.  * If you have found this script useful a small
  8.  * recommendation as well as a comment on our
  9.  * home page(https://brandcrock.com/)
  10.  * would be greatly appreciated.
  11.  *
  12.  * @author BrandCrock GmbH
  13.  * @package BrandCrockWhatsappChat
  14.  */
  15. declare(strict_types=1);
  16. namespace Brandcrock\BrandCrockWhatsappChat;
  17. use Doctrine\DBAL\Connection;
  18. use Shopware\Core\Framework\Plugin;
  19. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  20. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  21. class BrandCrockWhatsappChat extends Plugin
  22. {
  23.     public function Install(InstallContext $context): void
  24.     {
  25.         parent::Install($context);
  26.     }
  27.     public function uninstall(UninstallContext $context): void
  28.     {
  29.         parent::uninstall($context);
  30.         $connection $this->container->get(Connection::class);
  31.         $connection->executeQuery("DELETE FROM system_config WHERE configuration_key like '%BrandCrockWhatsappChat%'");
  32.     }
  33. }