translation_debug.php 1020 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.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 Symfony\Component\DependencyInjection\Loader\Configurator;
  11. use Symfony\Component\Translation\DataCollector\TranslationDataCollector;
  12. use Symfony\Component\Translation\DataCollectorTranslator;
  13. return static function (ContainerConfigurator $container) {
  14. $container->services()
  15. ->set('translator.data_collector', DataCollectorTranslator::class)
  16. ->args([service('translator.data_collector.inner')])
  17. ->set('data_collector.translation', TranslationDataCollector::class)
  18. ->args([service('translator.data_collector')])
  19. ->tag('data_collector', [
  20. 'template' => '@WebProfiler/Collector/translation.html.twig',
  21. 'id' => 'translation',
  22. 'priority' => 275,
  23. ])
  24. ;
  25. };