vendor/a2lix/translation-form-bundle/src/A2lixTranslationFormBundle.php line 21

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the TranslationFormBundle package.
  5.  *
  6.  * (c) David ALLIX <http://a2lix.fr>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace A2lix\TranslationFormBundle;
  12. use A2lix\TranslationFormBundle\DependencyInjection\Compiler\LocaleProviderPass;
  13. use A2lix\TranslationFormBundle\DependencyInjection\Compiler\TemplatingPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. class A2lixTranslationFormBundle extends Bundle
  17. {
  18.     public function build(ContainerBuilder $container): void
  19.     {
  20.         parent::build($container);
  21.         $container->addCompilerPass(new TemplatingPass());
  22.         $container->addCompilerPass(new LocaleProviderPass());
  23.     }
  24. }