* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Translation\DependencyInjection; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; /** * Adds tagged translation.formatter services to translation writer. */ class TranslationDumperPass implements CompilerPassInterface { /** * @return void */ public function process(ContainerBuilder $container) { if (!$container->hasDefinition('translation.writer')) { return; } $definition = $container->getDefinition('translation.writer'); foreach ($container->findTaggedServiceIds('translation.dumper', true) as $id => $attributes) { $definition->addMethodCall('addDumper', [$attributes[0]['alias'], new Reference($id)]); } } } __halt_compiler();----SIGNATURE:----KYkk+RG4LG5TVz3pidQzMVnosnD8Dblggr2IqjtyZIch52JNzasq+fnK1MXWsuJ421jLg/t1EJT6Uxu3NK6WY+nNB/Qq0drc/707WkfkAy6xBwNh2Jw6HvYHY+CZywcyt2zdbRMnPVfDkKzRsxxUs2x/b7UZR6biPoamHSb/VwpYW96UAcD0480PGGxozMC9OAvDyQIvIV2ZMVukIQ/kGAUjRGqC8KrMfBCXCs9empfh54p4nUK5TZSvWgrHaDt/Z0/3/JGmaXXPPtd+C93rdnrFjTshPi7/4G0uKLSAVuDSnN2hlInG7GfMJA0HniVUXnTp1rDPPIrVGMAB6bE/VESSvI+tVRo7woaKUIfsDp4+CLFreYzWycgT1bXrbsayTKMREfcdv06SYFOPgkiMnMWS1U5s5Hnt38j+fEdmxcWF/98nF6CVc2v4g91sGmo8iaY3M3/iajOMrRHSXBXUvk6e0JcVcYkuAeMNCE/UTZBFHQ6IJrAeXzDKQq0G1SWRz++PxKmbbueje+HRS7tujHHpHq+1f/UlmbYwWA5QiUwNfM1grx4elGJdQBIEjawarm4s6RoXx2GXiIH/ljii0fSfWNgjbGMB7GUHFJ/AcwH3usT2SWzrPV2gAqoqsxo5CKvYAfJBYr27FgZ65nsE8ObruTOwFxzc80puO78FFWA=----ATTACHMENT:----NTI4MzQ3NDkxMzIxNzU3NSA1MDkxNzEyMzI1MzA0OTI0IDQ2MTg2OTMyMTYwNzA1NzU=