vendor/php-translation/symfony-bundle/TranslationBundle.php line 26

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the PHP Translation package.
  4.  *
  5.  * (c) PHP Translation team <tobias.nyholm@gmail.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Translation\Bundle;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Translation\Bundle\DependencyInjection\CompilerPass\EditInPlacePass;
  14. use Translation\Bundle\DependencyInjection\CompilerPass\ExternalTranslatorPass;
  15. use Translation\Bundle\DependencyInjection\CompilerPass\ExtractorPass;
  16. use Translation\Bundle\DependencyInjection\CompilerPass\StoragePass;
  17. use Translation\Bundle\DependencyInjection\CompilerPass\SymfonyProfilerPass;
  18. use Translation\Bundle\DependencyInjection\CompilerPass\ValidatorVisitorPass;
  19. /**
  20.  * @author Tobias Nyholm <tobias.nyholm@gmail.com>
  21.  */
  22. class TranslationBundle extends Bundle
  23. {
  24.     public function build(ContainerBuilder $container): void
  25.     {
  26.         $container->addCompilerPass(new SymfonyProfilerPass());
  27.         $container->addCompilerPass(new ValidatorVisitorPass());
  28.         $container->addCompilerPass(new ExternalTranslatorPass());
  29.         $container->addCompilerPass(new ExtractorPass());
  30.         $container->addCompilerPass(new StoragePass());
  31.         $container->addCompilerPass(new EditInPlacePass());
  32.     }
  33. }