<?php declare(strict_types=1);
namespace MadYoutubeVideoOptions;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use MadYoutubeVideoOptions\Service\MadCustomFieldService;
class MadYoutubeVideoOptions extends Plugin
{
public const YOUTUBE_PRODUCT_EXTENSION_KEY = 'mad_youtube_options';
public function install(InstallContext $installContext): void
{
$customFields = new MadCustomFieldService($this->container->get('custom_field_set.repository'));
$customFields->createFields($installContext);
}
public function uninstall(UninstallContext $uninstallContext): void{
$customFields = new MadCustomFieldService($this->container->get('custom_field_set.repository'));
$customFields->deleteFields($uninstallContext);
}
}