vendor/store.shopware.com/viorepresentativeb2blogin/src/VioRepresentativeB2bLogin.php line 10

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