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.     /**
  13.      * @return void
  14.      */
  15.     public function build(ContainerBuilder $container)
  16.     {
  17.         parent::build($container);
  18.         $container->addCompilerPass(new AddLoadersPass());
  19.         $container->addCompilerPass(new TranslationResourceFilesPass());
  20.     }
  21. }