custom/plugins/IesProductNote/src/IesProductNote.php line 10

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Ies\ProductNote;
  3. use Ies\ProductNote\CompilerPass\RateLimiterCompilerPass;
  4. use Shopware\Core\Framework\Plugin;
  5. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. class IesProductNote extends Plugin
  8. {
  9.     public function build(ContainerBuilder $container): void
  10.     {
  11.         parent::build($container);
  12.         $container->addCompilerPass(new RateLimiterCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION500);
  13.     }
  14. }