<?php
/*
* This file is part of CustomerGroupPrice
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\CustomerGroupPrice42\Bundle;
use Plugin\CustomerGroupPrice42\DependencyInjection\Compiler\PricingPass;
use Plugin\CustomerGroupPrice42\DependencyInjection\Compiler\PurchaseFlowPass;
use Plugin\CustomerGroupPrice42\Service\Pricing\PricingInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class CustomerGroupPriceBundle extends Bundle
{
/**
* @param ContainerBuilder $container
*
* @return void
*/
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->registerForAutoconfiguration(PricingInterface::class)
->addTag(PricingPass::TAG);
$container->addCompilerPass(new PricingPass());
$container->addCompilerPass(new PurchaseFlowPass());
}
}