vendor/sensio/framework-extra-bundle/src/SensioFrameworkExtraBundle.php line 23

  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  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 Sensio\Bundle\FrameworkExtraBundle;
  11. use Sensio\Bundle\FrameworkExtraBundle\DependencyInjection\Compiler\AddExpressionLanguageProvidersPass;
  12. use Sensio\Bundle\FrameworkExtraBundle\DependencyInjection\Compiler\AddParamConverterPass;
  13. use Sensio\Bundle\FrameworkExtraBundle\DependencyInjection\Compiler\OptimizerPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. /**
  17.  * @author Fabien Potencier <fabien@symfony.com>
  18.  */
  19. class SensioFrameworkExtraBundle extends Bundle
  20. {
  21.     public function build(ContainerBuilder $container)
  22.     {
  23.         parent::build($container);
  24.         $container->addCompilerPass(new AddParamConverterPass());
  25.         $container->addCompilerPass(new OptimizerPass());
  26.         $container->addCompilerPass(new AddExpressionLanguageProvidersPass());
  27.     }
  28. }