modules/QSL/ShopByBrand/src/ShopByBrandBundle.php line 17

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
  4.  * See https://www.x-cart.com/license-agreement.html for license details.
  5.  */
  6. declare(strict_types=1);
  7. namespace QSL\ShopByBrand;
  8. use QSL\ShopByBrand\DependencyInjection\Compiler\AddProductFilterByBrandFieldPass;
  9. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. final class ShopByBrandBundle extends Bundle
  13. {
  14.     public function build(ContainerBuilder $container): void
  15.     {
  16.         parent::build($container);
  17.         $container->addCompilerPass(new AddProductFilterByBrandFieldPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION710);
  18.     }
  19. }