<?php declare(strict_types=1);
namespace System4InterfacePlugin;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use System4InterfacePlugin\Setup\Installer;
use System4InterfacePlugin\Setup\Uninstaller;
use Doctrine\DBAL\Connection;
class System4InterfacePlugin extends Plugin
{
/**
* @param InstallContext $context
*/
public function install(InstallContext $context): void
{
$installer = new Installer(
$this->container->get(Connection::class),
$this->container
);
$installer->install($context);
}
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
$unInstaller = new Uninstaller(
$this->container->get(Connection::class),
$this->container
);
$unInstaller->uninstall($context);
}
}