vendor/lexik/translation-bundle/LexikTranslationBundle.php line 15

Open in your IDE?
  1. <?php
  2. namespace Lexik\Bundle\TranslationBundle;
  3. use Symfony\Component\HttpKernel\Bundle\Bundle;
  4. use Symfony\Component\DependencyInjection\ContainerBuilder;
  5. use Lexik\Bundle\TranslationBundle\DependencyInjection\Compiler\RegisterMappingPass;
  6. use Lexik\Bundle\TranslationBundle\DependencyInjection\Compiler\TranslatorPass;
  7. /**
  8.  * Bundle main class.
  9.  *
  10.  * @author Cédric Girard <c.girard@lexik.fr>
  11.  */
  12. class LexikTranslationBundle extends Bundle
  13. {
  14.     public function build(ContainerBuilder $container)
  15.     {
  16.         parent::build($container);
  17.         $container->addCompilerPass(new TranslatorPass());
  18.         $container->addCompilerPass(new RegisterMappingPass());
  19.     }
  20. }