<?php
declare(strict_types=0);
/*
* WellCommerce Foundation
*
* This file is part of the WellCommerce package.
*
* (c) Adam Piotrowski <adam@wellcommerce.org>, Adrian Potepa <adrian@wellcommerce.org>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace WellCommerce\Bundle\OrderBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use WellCommerce\Bundle\OrderBundle\DependencyInjection\Compiler;
/**
* Class WellCommerceOrderBundle
*
* @author Adam Piotrowski <adam@wellcommerce.org>
*/
class WellCommerceOrderBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new Compiler\RegisterOrderVisitorPass());
$container->addCompilerPass(new Compiler\RegisterPaymentProcessorPass());
$container->addCompilerPass(new Compiler\RegisterOrderRuleProcessorPass());
$container->addCompilerPass(new Compiler\RegisterShippingMethodCalculatorPass());
$container->addCompilerPass(new Compiler\RegisterShippingMethodOptionsProviderPass());
$container->addCompilerPass(new Compiler\RegisterShipmentAdapterPass());
$container->addCompilerPass(new Compiler\RegisterInvoiceProcessorPass());
$container->addCompilerPass(new Compiler\RegisterStatementImporterPass());
}
}