<?php
/**
* @package Divante\ByDesign
* @copyright 2022 Divante S.A.
* @license See LICENSE_DIVANTE.txt for license details.
*/
declare(strict_types=1);
namespace Divante\ByDesign;
use Divante\Core\Service\CustomFieldsInstaller;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Divante\ByDesign\Entity\CustomField\CustomerByDesignIdCustomField;
use Divante\ByDesign\Entity\CustomField\OrderByDesignIdCustomField;
class DivanteByDesign extends Plugin
{
/**
* @param InstallContext $installContext
* @return void
*/
public function install(InstallContext $installContext): void
{
$customFieldSetInstaller = $this->container->get(CustomFieldsInstaller::class);
$customFieldSetInstaller->ensureExists((new CustomerByDesignIdCustomField())->getSet(), $installContext->getContext());
$customFieldSetInstaller->ensureExists((new OrderByDesignIdCustomField())->getSet(), $installContext->getContext());
}
}