Sylius\Bundle\PromotionBundle\DependencyInjection\Compiler\CompositePromotionEligibilityCheckerPass::process PHP Method

process() public method

public process ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder
    public function process(ContainerBuilder $container)
    {
        if (!$container->has('sylius.promotion_eligibility_checker')) {
            return;
        }
        $container->getDefinition('sylius.promotion_eligibility_checker')->setArguments([array_map(function ($id) {
            return new Reference($id);
        }, array_keys($container->findTaggedServiceIds('sylius.promotion_eligibility_checker')))]);
    }
CompositePromotionEligibilityCheckerPass