<?php declare(strict_types=1);
/**
* PremSoft
* Copyright © 2019 Premsoft - Sven Mittreiter
*
* @copyright Copyright (c) 2019, premsoft - Sven Mittreiter (http://www.premsoft.de)
* @author Sven Mittreiter <info@premsoft.de>
*/
namespace Prems\Plugin\PremsOnePageCheckout6;
use Prems\Plugin\PremsOnePageCheckout6\Core\OnePageCheckout\Lifecycle\InstallUninstall;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class PremsOnePageCheckout6 extends Plugin
{
public function install(InstallContext $context): void
{
(new InstallUninstall(
$this->container->get('custom_field.repository')
))->install($context);
parent::install($context);
}
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
if ($context->keepUserData()) {
return;
}
(new InstallUninstall(
$this->container->get('custom_field.repository')
))->uninstall($context);
}
}