vendor/willdurand/js-translation-bundle/BazingaJsTranslationBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace Bazinga\Bundle\JsTranslationBundle;
  3. use Bazinga\Bundle\JsTranslationBundle\DependencyInjection\Compiler\TranslationResourceFilesPass;
  4. use Symfony\Component\HttpKernel\Bundle\Bundle;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Bazinga\Bundle\JsTranslationBundle\DependencyInjection\Compiler\AddLoadersPass;
  7. /**
  8.  * @author William DURAND <william.durand1@gmail.com>
  9.  */
  10. class BazingaJsTranslationBundle extends Bundle
  11. {
  12.     public function build(ContainerBuilder $container)
  13.     {
  14.         parent::build($container);
  15.         $container->addCompilerPass(new AddLoadersPass());
  16.         $container->addCompilerPass(new TranslationResourceFilesPass());
  17.     }
  18. }