app/Plugin/PinpointSaleDx/Bundle/PinpointSaleDxBundle.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright(c) 2024 SYSTEM_KD
  4.  * Date: 2024/06/30
  5.  */
  6. namespace Plugin\PinpointSaleDx\Bundle;
  7. use Eccube\Common\Constant;
  8. use Plugin\PinpointSaleDx\DependencyInjection\Compiler\PurchaseFlowPassEx;
  9. use Plugin\PinpointSaleDx\DependencyInjection\Compiler\PurchaseFlowPassEx43;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. class PinpointSaleDxBundle extends Bundle
  13. {
  14.     public function build(ContainerBuilder $container)
  15.     {
  16.         parent::build($container);
  17.         // PurchaseFlow変更
  18.         if (version_compare(Constant::VERSION'4.3''>=')) {
  19.             // 4.3系の場合実施
  20.             $container->addCompilerPass(new PurchaseFlowPassEx43());
  21.         } else {
  22.             // 4.2系の場合実施
  23.             $container->addCompilerPass(new PurchaseFlowPassEx());
  24.         }
  25.     }
  26. }