Post testowy

Opis posta

<?php declare(strict_types=1);
namespace Example;
use Example\Service\OrderCustomFields;
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\UninstallContext;
class Example extends Plugin
{
    public function install(InstallContext $installContext): void
    {
        (new OrderCustomFields($this--->container))
            ->installCustomFields($installContext->getContext());
    }
    public function activate(ActivateContext $activateContext): void
    {
        (new OrderCustomFields($this->container))
            ->activateCustomFields($activateContext->getContext());
    }
    public function deactivate(DeactivateContext $deactivateContext): void
    {
        (new OrderCustomFields($this->container))
            ->deactivateCustomFields($deactivateContext->getContext());
    }
    public function uninstall(UninstallContext $uninstallContext): void
    {
        (new OrderCustomFields($this->container))
            ->uninstallCustomFields($uninstallContext->getContext());
    }
}
HMMH Poland Facebook HMMH Poland Facebook HMMH Poland Twitter HMMH Poland Twitter HMMH Poland Linkedin HMMH Poland Linkedin

Categories:Bez kategorii

Tags: