<?php declare(strict_types=1);
/**
* @copyright 2020 Crehler Sp. z o. o. <https://crehler.com>
*
* @author Jakub MedyĆski <jme@crehler.com>
* @support Crehler <support@crehler.com>
* @created 30 mar 2020
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Crehler\VariantsAdvanced;
use Crehler\VariantsAdvanced\Util\Lifecycle\ActivateDeactivate;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\ActivateContext;
use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
class CrehlerVariantsAdvanced extends Plugin
{
public function activate(ActivateContext $activateContext): void
{
(new ActivateDeactivate($this->container->get('custom_field.repository')))->activate($activateContext->getContext());
}
public function deactivate(DeactivateContext $deactivateContext): void
{
(new ActivateDeactivate($this->container->get('custom_field.repository')))->deactivate($deactivateContext->getContext());
}
}