* * 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:----TijFLCqtNTtpUWpBOzP0yIFC9eVijIwnpfMVQJWXgknqnWm+RWEwOC6dxFVkUsDi65M+lA1Nmv2Tde7GV8BGUVn2ZWy2sjOQqzQQ+x+JJ1DQLZVwCz+zEqXcycqgcu8/76iGlAES5EdH1h4dPwGW0vQnPTsq33a74plUM4XJnjVBDstUySVq4qn3fBMSeCd3z8NcHqxH69GrpfNVPD76qM4tyt06M3Z64pxmzRV6HDte9zygawju50Qzv46byOKfRZI8BWVB+AAnw9u2MPpwtVG/Jy+OoVj+uUv4nTMkUntLvT8e37I1e8E6aoPnsmAjFY52h3NaxVPrptLH9P+HZ2De94YA/e3j3P5ys+7yFt+QF3sJLnec9HMiWl66ZhEWQr8Hg12NQtmLPZ5+0zRBMfKOI53mTpan/qoNzAsT+MHGpPnuQA7SBXpso8DvG6py7ptvu39pF/Rf1WVHuINMMovJq3DEURuxd2Q0/GyuiPfnliQ2M3MUptbsCBWq8z/iDxcEsg2yP7ktuwX8a2i42bFNHp9uX6t9q3Vr2tMGST1tKXRcn/UY+6+hW6fPqihFLATEWeeZ/kYHKThsa5lhG2rtF0fqGxnBR72ayN4FhQ1YKpt8Qn7Gq0DFDHTh2PONDBQ95dlBv11MFcWF/5GLmn7e2N81fuS/7FpOrYNZu5Y=----ATTACHMENT:----MjI3NTk2NzAwMDIxMjgwMSA5NzIzNzU3MzA3NTMyMDE0IDUzNDk5Nzg3NTgzMDk4NDA=