<?php
declare(strict_types=1);
namespace CrayssnLabsDpdConnector;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use CrayssnLabsDpdConnector\Framework\Lifecycle;
use Shopware\Core\Framework\Plugin\Context\UpdateContext;
/**
* Class CrayssnLabsDpdConnector
*
* @package CrayssnLabsDpdConnector
*
* @author Sebastian Ludwig <dev@cl.team>
* @copyright Copyright (c) 2022, CrayssnLabs Ludwig Wiegler GbR
*/
class CrayssnLabsDpdConnector extends Plugin
{
const
MAIL_RETOUR_TEMPLATE_TYPE_TECHNICAL_NAME = 'CrayssnLabsDpdConnector.mail.retour',
MAIL_TRACKING_TEMPLATE_TYPE_TECHNICAL_NAME = 'CrayssnLabsDpdConnector.mail.tracking';
/**
* Function install
*
* @param \Shopware\Core\Framework\Plugin\Context\InstallContext $installContext
*/
public function install(InstallContext $installContext): void
{
(new Lifecycle\Install($this->container, $installContext->getContext()))->run();
parent::install($installContext);
}
/**
* Function uninstall
*
* @param \Shopware\Core\Framework\Plugin\Context\UninstallContext $uninstallContext
*/
public function uninstall(UninstallContext $uninstallContext): void
{
(new Lifecycle\Uninstall($this->container, $uninstallContext->getContext()))->run();
parent::uninstall($uninstallContext);
}
/**
* Function update
*
* @param \Shopware\Core\Framework\Plugin\Context\UpdateContext $updateContext
*
* @throws \Doctrine\DBAL\Exception
*/
public function update(UpdateContext $updateContext): void
{
(new Lifecycle\Update($this->container, $updateContext->getContext()))->run();
parent::update($updateContext);
}
}