<?php declare(strict_types=1);
namespace GreatSuperMegaSliderSW6;
use GreatSuperMegaSliderSW6\Service\RemoveSliderService;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class GreatSuperMegaSliderSW6 extends Plugin
{
public function uninstall(UninstallContext $context): void
{
if ($context->keepUserData()) {
return;
}
$removeSliderService = new RemoveSliderService(
$this->container->get('cms_slot.repository'),
$this->container->get('cms_block.repository'),
$context->getContext()
);
$removeSliderService->remove();
parent::uninstall($context);
}
}