<?php declare(strict_types=1);
namespace Ott\EmarsysIntegration;
use Ott\EmarsysIntegration\DependencyInjection\EventDataProviderCompilerPass;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\ActivateContext;
use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Symfony\Component\DependencyInjection\ContainerBuilder;
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
}
class EmarsysIntegration extends Plugin
{
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new EventDataProviderCompilerPass());
parent::build($container);
}
public function install(InstallContext $context): void
{
}
public function activate(ActivateContext $context): void
{
}
public function deactivate(DeactivateContext $context): void
{
}
}