Blog
- All
Post testowy
Rafał
0 minutes
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…