vendor/a2lix/translation-form-bundle/A2lixTranslationFormBundle.php line 22

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the TranslationFormBundle package.
  4.  *
  5.  * (c) David ALLIX <http://a2lix.fr>
  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 A2lix\TranslationFormBundle;
  11. use A2lix\TranslationFormBundle\DependencyInjection\Compiler\LocaleProviderPass;
  12. use A2lix\TranslationFormBundle\DependencyInjection\Compiler\TemplatingPass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16.  * @author David ALLIX
  17.  */
  18. class A2lixTranslationFormBundle extends Bundle
  19. {
  20.     public function build(ContainerBuilder $container)
  21.     {
  22.         parent::build($container);
  23.         $container->addCompilerPass(new TemplatingPass());
  24.         $container->addCompilerPass(new LocaleProviderPass());
  25.     }
  26. }