src/Hitso/Bundle/CommonBundle/HitsoCommonBundle.php line 25

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4.  * @author Maciej Kaczmarek <maciej.kaczmarek@autentika.pl>
  5.  */
  6. namespace Hitso\Bundle\CommonBundle;
  7. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\AddLogFormattersPass;
  8. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\AddMailerTransformersPass;
  9. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\AddMediaUrlProvidersPass;
  10. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\GraphQLPass;
  11. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\OverrideServicesPass;
  12. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\RegisterClassMetadataEnhancerPass;
  13. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\RegisterEntityManagerPass;
  14. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\RegisterLoggableReverterPass;
  15. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\RegisterSystemConfiguratorPass;
  16. use Hitso\Bundle\CommonBundle\DependencyInjection\CompilerPass\RegisterTraitGeneratorEnhancerPass;
  17. use Symfony\Component\DependencyInjection\ContainerBuilder;
  18. use Symfony\Component\HttpKernel\Bundle\Bundle;
  19. /**
  20.  * @codeCoverageIgnore
  21.  */
  22. class HitsoCommonBundle extends Bundle
  23. {
  24.     public function build(ContainerBuilder $container)
  25.     {
  26.         $container->addCompilerPass(new AddLogFormattersPass());
  27.         $container->addCompilerPass(new AddMailerTransformersPass());
  28.         $container->addCompilerPass(new AddMediaUrlProvidersPass());
  29.         $container->addCompilerPass(new RegisterClassMetadataEnhancerPass());
  30.         $container->addCompilerPass(new RegisterTraitGeneratorEnhancerPass());
  31.         $container->addCompilerPass(new OverrideServicesPass());
  32.         $container->addCompilerPass(new RegisterEntityManagerPass());
  33.         $container->addCompilerPass(new RegisterLoggableReverterPass());
  34.         $container->addCompilerPass(new GraphQLPass());
  35.     }
  36. }