- <?php
- /**
-  * Copyright(c) 2024 SYSTEM_KD
-  * Date: 2024/06/08
-  */
- namespace Plugin\PointExDx\Bundle;
- use Eccube\Common\Constant;
- use Plugin\PointExDx\DependencyInjection\Compiler\PurchaseFlowPassEx;
- use Plugin\PointExDx\DependencyInjection\Compiler\PurchaseFlowPassEx43;
- use Symfony\Component\DependencyInjection\ContainerBuilder;
- use Symfony\Component\HttpKernel\Bundle\Bundle;
- class PointExDxBundle extends Bundle
- {
-     public function build(ContainerBuilder $container)
-     {
-         parent::build($container);
-         // PurchaseFlow変更
-         if (version_compare(Constant::VERSION, '4.3', '>=')) {
-             // 4.3系の場合実施
-             $container->addCompilerPass(new PurchaseFlowPassEx43());
-         } else {
-             // 4.2系の場合実施
-             $container->addCompilerPass(new PurchaseFlowPassEx());
-         }
-     }
- }
-