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

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