custom/plugins/MoorlFormBuilderRegistration/src/MoorlFormBuilderRegistration.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace MoorlFormBuilderRegistration;
  3. use Doctrine\DBAL\Connection;
  4. use MoorlFoundation\Core\PluginFoundation;
  5. use Shopware\Core\Framework\Uuid\Uuid;
  6. use Shopware\Core\Framework\Plugin;
  7. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  8. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  9. class MoorlFormBuilderRegistration extends Plugin
  10. {
  11.     public function uninstall(UninstallContext $context): void
  12.     {
  13.         parent::uninstall($context);
  14.         if ($context->keepUserData()) {
  15.             return;
  16.         }
  17.         /* @var $foundation PluginFoundation */
  18.         $foundation $this->container->get(PluginFoundation::class);
  19.         $foundation->setContext($context->getContext());
  20.         $foundation->dropTables([
  21.             'moorl_fb_customer_upload'
  22.         ]);
  23.     }
  24. }