<?php declare(strict_types=1);
/**
* gb media
* All Rights Reserved.
*
* Unauthorized copying of this file, via any medium is strictly prohibited.
* The content of this file is proprietary and confidential.
*
* @category Shopware
* @package Shopware_Plugins
* @subpackage GbmedClientPentagastForms
* @copyright Copyright (c) 2023, gb media
* @license proprietary
* @author Giuseppe Bottino
* @link http://www.gb-media.biz
*/
namespace Gbmed\ClientPentagastForms;
use Gbmed\ClientPentagastForms\Installer\Handlers\MailInstaller;
use Gbmed\ClientPentagastForms\Installer\Installer;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UpdateContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class GbmedClientPentagastForms extends Plugin
{
public function install(InstallContext $context): void
{
$this->getInstaller()->install($context);
}
public function update(UpdateContext $context): void
{
$this->getInstaller()->update($context);
}
public function uninstall(UninstallContext $context): void
{
$this->getInstaller()->uninstall($context);
}
private function getInstaller(): Installer
{
return new Installer(
$this->container->get('mail_template_type.repository'),
$this->container->get('mail_template.repository')
);
}
}