custom/plugins/VerignFeedback/src/VerignFeedback.php line 10

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Verign\VerignFeedback;
  3. use Doctrine\DBAL\Connection//probably needed
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  6. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  7. class VerignFeedback extends Plugin
  8. {
  9.     public function install(InstallContext $installContext): void
  10.     {
  11.         //mail template logic goes here
  12.         
  13.         parent::install($installContext);
  14.     }
  15.     public function uninstall(UninstallContext $context): void
  16.     {
  17.         parent::uninstall($context);
  18.         if ($context->keepUserData()) {
  19.             return;
  20.         }
  21.         $connection $this->container->get(Connection::class);
  22.         $connection->executeStatement('DROP TABLE IF EXISTS `verign_feedback`');
  23.     }
  24. }