<?php declare(strict_types=1);
namespace WodkaHoverOnListingSW6;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Exception;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class WodkaHoverOnListingSW6 extends Plugin
{
/**
* @param UninstallContext $uninstallContext
* @return void
* @throws Exception
*/
public function uninstall(UninstallContext $uninstallContext): void
{
if ($uninstallContext->keepUserData()) {
return;
}
/** @var Connection $connection */
$connection = $this->container->get(Connection::class);
$connection->executeStatement('DELETE FROM `system_config` WHERE configuration_key IN (:configKeys)', [
'configKeys' => [
'WodkaHoverOnListingSW6.config.navigationDotsPosition',
'WodkaHoverOnListingSW6.config.navigationArrowsPosition',
'WodkaHoverOnListingSW6.config.activeImageHover',
'WodkaHoverOnListingSW6.config.imageHoverEffects',
'WodkaHoverOnListingSW6.config.useOnHoverColor',
'WodkaHoverOnListingSW6.config.clickableProductBlock',
'WodkaHoverOnListingSW6.config.imageSliderActive',
'WodkaHoverOnListingSW6.config.activeListingGrid',
'WodkaHoverOnListingSW6.config.activeNavigationDotColor',
'WodkaHoverOnListingSW6.config.active',
'WodkaHoverOnListingSW6.config.activeFlipDescription',
'WodkaHoverOnListingSW6.config.onHoverItemColor',
'WodkaHoverOnListingSW6.config.navigationArrowsColor',
'WodkaHoverOnListingSW6.config.inactiveNavigationDotColor'
]
], ['configKeys' => Connection::PARAM_STR_ARRAY]);
}
}