custom/plugins/ValKalifFeeriaEmployees/src/Kalif_Feeria_Employees.php line 10

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