<?php declare(strict_types=1);
namespace Wabs\ProductPreorder;
use Shopware\Core\Content\Property\PropertyGroupDefinition;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Wabs\ProductPreorder\Service\Install\InstallService;
class WabsProductPreorder extends Plugin {
public function install(InstallContext $installContext): void {
(new InstallService($this->container))->install($installContext->getContext());
}
public function uninstall(UninstallContext $uninstallContext): void {
if(!$uninstallContext->keepUserData()) {
(new InstallService($this->container))->uninstall($uninstallContext->getContext());
}
}
}