* * 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:----oinjOIAihuhJAKNHSFihHtWIEwCMqeXYRfpVDsHoRd42wcC1kvkdpbpOuDJDQlM5d2BQEwKLA1PXxetslpKJ+CkpDb0NnH2HgSaNBf3cnGTmW3ph/b1uGaDUOojzzKRSdINaLjTYOZBxaOcWDoJDY3EIMGxD+cRO45kvUBdmlmO4cLr21NmAVCPW4uJvXSAJSUvavbNlvbDLf+7YzfuDTOLxLEFC4MHfP68YN43Cu5otRkNXEsYwIt+4lfx/LDSaB8Y0UFW22/f5VO55uqLSn+jW0K4yvAhNmTpXdvz6k2oVRYtG1R/hxA2Ow5wqBlMDDuJ9SEAheXgJYXZTWdMQaWignQj6uICqmpCRPQ+qpFP448lg5UVigSwHkPj96FDM/libh10uYN4aZCaVZ74kEPpNHDxMXwJsJgPMVFenWiQZY/Wg4Mg5oAv845tVzSagPvuA7hSGxU3ULKztlCoYlDei9XgrBaQUfX1nDjguuMXh/rhlXfDfK1eGO8DGTCjonj46HD4/s3kngQ5/XFEmI1x6z/gKDuRqEwSjJsx8QLMNbaKJzlmS2vwx6hDdake59DYQTXHlLeOLiFPhQjiqCcHGadbHdsn4TQANXujW2wNUrhvLJNBGisjs5M9oZp6X95oRto8Xv/wW7Mp99i2xsGsrROINfYvoi3cinPTacbI=----ATTACHMENT:----MTU2NjM1MDA4ODIyNjIyMyA2ODY0MDU0Nzk4NTM1MjkgNDk4MTUwODQxMjgwMzAxMg==