<?php declare(strict_types=1);
namespace Ies\ProductNote;
use Ies\ProductNote\CompilerPass\RateLimiterCompilerPass;
use Shopware\Core\Framework\Plugin;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class IesProductNote extends Plugin
{
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->addCompilerPass(new RateLimiterCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 500);
}
}