custom/plugins/PluszweiDashboardShopPilot/src/PluszweiDashboardShopPilot.php line 15

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Pluszwei\DashboardShopPilot;
  4. use Doctrine\DBAL\Connection;
  5. use Shopware\Core\Framework\Plugin;
  6. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  7. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  8. /**
  9.  * dashboard-shop-pilot.
  10.  */
  11. class PluszweiDashboardShopPilot extends Plugin
  12. {
  13.     /**
  14.      * install.
  15.      */
  16.     public function install(InstallContext $context): void
  17.     {
  18.     }
  19.     /**
  20.      * uninstall.
  21.      */
  22.     public function uninstall(UninstallContext $context): void
  23.     {
  24.         parent::uninstall($context);
  25.         if ($context->keepUserData()) {
  26.             return;
  27.         }
  28.         /** @var Connection $connection */
  29.         $connection $this->container->get(Connection::class);
  30.         $connection->executeUpdate('DROP TABLE IF EXISTS `pluszwei_dashboard_seen_log`');
  31.     }
  32.     public static function getConfig($config)
  33.     {
  34.         return sprintf('%s.config.%s''PluszweiDashboardShopPilot'$config);
  35.     }
  36. }