src/WellCommerce/Bundle/CoreBundle/WellCommerceCoreBundle.php line 27

Open in your IDE?
  1. <?php
  2. declare(strict_types=0);
  3. /*
  4.  * WellCommerce Foundation
  5.  *
  6.  * This file is part of the WellCommerce package.
  7.  *
  8.  * (c) Adam Piotrowski <adam@wellcommerce.org>, Adrian Potepa <adrian@wellcommerce.org>
  9.  *
  10.  * For the full copyright and license information,
  11.  * please view the LICENSE file that was distributed with this source code.
  12.  */
  13. namespace WellCommerce\Bundle\CoreBundle;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. use WellCommerce\Bundle\CoreBundle\DependencyInjection\Compiler;
  17. /**
  18.  * Class WellCommerceCoreBundle
  19.  *
  20.  * @author  Adam Piotrowski <adam@wellcommerce.org>
  21.  */
  22. class WellCommerceCoreBundle extends Bundle
  23. {
  24.     public function build(ContainerBuilder $container)
  25.     {
  26.         parent::build($container);
  27.         $container->addCompilerPass(new Compiler\DataSetContextPass());
  28.         $container->addCompilerPass(new Compiler\DataSetTransformerPass());
  29.         $container->addCompilerPass(new Compiler\RegisterTraitGeneratorEnhancerPass());
  30.         $container->addCompilerPass(new Compiler\RegisterClassMetadataEnhancerPass());
  31.         $container->addCompilerPass(new Compiler\ResourceManagerPass());
  32.         $container->addCompilerPass(new Compiler\GraphQLPass());
  33.     }
  34. }