vendor/csa/guzzle-bundle/src/CsaGuzzleBundle.php line 24

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the CsaGuzzleBundle package
  4.  *
  5.  * (c) Charles Sarrazin <charles@sarraz.in>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code
  9.  */
  10. namespace Csa\Bundle\GuzzleBundle;
  11. use Csa\Bundle\GuzzleBundle\DependencyInjection\CompilerPass\LoaderPass;
  12. use Csa\Bundle\GuzzleBundle\DependencyInjection\CompilerPass\MiddlewarePass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16.  * Csa Guzzle Bundle.
  17.  *
  18.  * @author Charles Sarrazin <charles@sarraz.in>
  19.  */
  20. class CsaGuzzleBundle extends Bundle
  21. {
  22.     public function build(ContainerBuilder $container)
  23.     {
  24.         parent::build($container);
  25.         $container->addCompilerPass(new MiddlewarePass());
  26.         $container->addCompilerPass(new LoaderPass());
  27.     }
  28. }