custom/plugins/api-flow-trigger-plugin-sw6/src/AppliApiFlowTrigger.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Applifaction\AppliApiFlowTrigger;
  3. use Doctrine\DBAL\Connection;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  6. class AppliApiFlowTrigger extends Plugin
  7. {
  8.     public function uninstall(UninstallContext $context): void
  9.     {
  10.         parent::uninstall($context);
  11.         if ($context->keepUserData()) {
  12.             return;
  13.         }
  14.         $connection $this->container->get(Connection::class);
  15.         if (!$connection) {
  16.             return;
  17.         }
  18.         $connection->executeStatement('DROP TABLE IF EXISTS `applifaction_flow_execution_log`');
  19.     }
  20. }