<?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\CoreBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use WellCommerce\Bundle\CoreBundle\DependencyInjection\Compiler;
/**
* Class WellCommerceCoreBundle
*
* @author Adam Piotrowski <adam@wellcommerce.org>
*/
class WellCommerceCoreBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new Compiler\DataSetContextPass());
$container->addCompilerPass(new Compiler\DataSetTransformerPass());
$container->addCompilerPass(new Compiler\RegisterTraitGeneratorEnhancerPass());
$container->addCompilerPass(new Compiler\RegisterClassMetadataEnhancerPass());
$container->addCompilerPass(new Compiler\ResourceManagerPass());
$container->addCompilerPass(new Compiler\GraphQLPass());
}
}