<?php declare(strict_types=1);
namespace Uandi\UandiEfbErpSynchronization;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Uandi\UandiEfbErpSynchronization\Service\Stock\CustomFieldService as StockCustomFieldService;
class UandiEfbErpSynchronization extends Plugin
{
/**
* @param InstallContext $installContext
*/
public function install(InstallContext $installContext) : void
{
parent::install($installContext);
$stockCustomFieldService = new StockCustomFieldService(
$this->container->get('custom_field_set.repository')
);
// Add custom fields
$stockCustomFieldService->addStockCustomFieldsToProduct($installContext->getContext());
}
}