<?php
declare(strict_types=1);
namespace Orcamultimedia\OciPunchout;
use Orcamultimedia\OciPunchout\Installment\InstallService;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\ActivateContext;
use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UpdateContext;
class OciPunchout extends Plugin
{
public function install(InstallContext $installContext): void
{
(new InstallService($this->container))->install($installContext->getContext());
}
public function activate(ActivateContext $activateContext): void
{
(new InstallService($this->container))->activate($activateContext->getContext());
}
public function deactivate(DeactivateContext $deactivateContext): void
{
(new InstallService($this->container))->deactivate($deactivateContext->getContext());
}
public function update(UpdateContext $updateContext): void
{
(new InstallService($this->container))->update($updateContext->getContext());
}
// We don't want to remove custom fields because they could contain important data
}