vendor/ajgarlag/psr-http-message-bundle/src/AjgarlagPsrHttpMessageBundle.php line 23

Open in your IDE?
  1. <?php
  2. /*
  3.  * PsrHttpMessageBundle by @ajgarlag
  4.  *
  5.  * Copyright (c) 2010-2021 Fabien Potencier
  6.  * Copyright (c) 2021 Antonio J. GarcĂ­a Lagar
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace Ajgarlag\Bundle\PsrHttpMessageBundle;
  12. use Ajgarlag\Bundle\PsrHttpMessageBundle\DependencyInjection\Compiler\RegisterHttpMessageFactoriesPass;
  13. use Ajgarlag\Bundle\PsrHttpMessageBundle\DependencyInjection\Compiler\RegisterNyholmPsr17FactoriesPass;
  14. use Ajgarlag\Bundle\PsrHttpMessageBundle\DependencyInjection\Compiler\TagArgumentValueResolverPass;
  15. use Ajgarlag\Bundle\PsrHttpMessageBundle\DependencyInjection\Compiler\TagViewEventListenerPass;
  16. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  17. use Symfony\Component\DependencyInjection\ContainerBuilder;
  18. use Symfony\Component\HttpKernel\Bundle\Bundle;
  19. class AjgarlagPsrHttpMessageBundle extends Bundle
  20. {
  21.     public function build(ContainerBuilder $container)
  22.     {
  23.         parent::build($container);
  24.         $container->addCompilerPass(new TagArgumentValueResolverPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION1);
  25.         $container->addCompilerPass(new RegisterHttpMessageFactoriesPass());
  26.         $container->addCompilerPass(new RegisterNyholmPsr17FactoriesPass());
  27.         $container->addCompilerPass(new TagViewEventListenerPass());
  28.     }
  29. }