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

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace NeofirePlentymarketsDebugger;
  3. use Doctrine\DBAL\Connection;
  4. use Shopware\Core\Framework\DataAbstractionLayer\Indexing\EntityIndexerRegistry;
  5. use Shopware\Core\Framework\Plugin;
  6. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  7. class NeofirePlentymarketsDebugger extends Plugin
  8. {
  9.     public function uninstall(UninstallContext $context): void
  10.     {
  11.         parent::uninstall($context);
  12.         if ($context->keepUserData()) {
  13.             return;
  14.         }
  15.         $connection $this->container->get(Connection::class);
  16.         $connection->executeUpdate('DELETE FROM `system_config` WHERE `configuration_key` LIKE \'NeofirePlentymarketsDebugger.%\';');
  17.     }
  18. }