modules/CDev/Bestsellers/src/BestsellersBundle.php line 15

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. namespace CDev\Bestsellers;
  7. use CDev\Bestsellers\DependencyInjection\Compiler\AddProductFilterByBestsellersFieldPass;
  8. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  9. use Symfony\Component\DependencyInjection\ContainerBuilder;
  10. use Symfony\Component\HttpKernel\Bundle\Bundle;
  11. class BestsellersBundle extends Bundle
  12. {
  13.     public function build(ContainerBuilder $container): void
  14.     {
  15.         parent::build($container);
  16.         $container->addCompilerPass(new AddProductFilterByBestsellersFieldPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION710);
  17.     }
  18. }