<?php
declare(strict_types=1);
namespace Pluszwei\DashboardShopPilot;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
/**
* dashboard-shop-pilot.
*/
class PluszweiDashboardShopPilot extends Plugin
{
/**
* install.
*/
public function install(InstallContext $context): void
{
}
/**
* uninstall.
*/
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
if ($context->keepUserData()) {
return;
}
/** @var Connection $connection */
$connection = $this->container->get(Connection::class);
$connection->executeUpdate('DROP TABLE IF EXISTS `pluszwei_dashboard_seen_log`');
}
public static function getConfig($config)
{
return sprintf('%s.config.%s', 'PluszweiDashboardShopPilot', $config);
}
}