This appears to be a bug in the yaml parser - just looking for confirmation before escalating it.
The following yaml config line works as expected foo: a printf template with token 1 '%s' however if I add a second token thus foo: a printf template with token 1 '%s' and token2 '%s' Symfony2 bails, apparently because it's trying to evaluate the second percent prefixed token as a DI parameter. Here's the error: Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection \Exception\NonExistentParameterException' with message 'The service "sr.message_helper" has a dependency on a non-existent parameter "s' and token2 '".' in /usr/local/zend/apache2/htdocs/pchapman/vendor/ symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ ParameterBag.php on line 79 Symfony\Component\DependencyInjection\Exception \NonExistentParameterException: The service "sr.message_helper" has a dependency on a non-existent parameter "s' and token2 '". in /usr/ local/zend/apache2/htdocs/pchapman/vendor/symfony/src/Symfony/ Component/DependencyInjection/ParameterBag/ParameterBag.php on line 79 Call Stack: 0.0019 335668 1. {main}() /usr/local/zend/apache2/htdocs/ pchapman/tierville-web/app_dev.php:0 0.0107 1278660 2. Symfony\Component\HttpKernel\Kernel- >loadClassCache() /usr/local/zend/apache2/htdocs/pchapman/tierville- web/app_dev.php:19 0.0107 1278748 3. Symfony\Component\HttpKernel\Kernel- >boot() /usr/local/zend/apache2/htdocs/pchapman/tierville-app/ bootstrap.php.cache:711 0.0155 1381248 4. Symfony\Component\HttpKernel\Kernel- >initializeContainer() /usr/local/zend/apache2/htdocs/pchapman/ tierville-app/bootstrap.php.cache:592 0.0182 1394244 5. Symfony\Component\HttpKernel\Kernel- >buildContainer() /usr/local/zend/apache2/htdocs/pchapman/tierville- app/bootstrap.php.cache:788 0.2461 4104484 6. Symfony\Component\DependencyInjection \ContainerBuilder->compile() /usr/local/zend/apache2/htdocs/pchapman/ tierville-app/bootstrap.php.cache:860 0.2489 4122888 7. Symfony\Component\DependencyInjection \Compiler\Compiler->compile() /usr/local/zend/apache2/htdocs/pchapman/ vendor/symfony/src/Symfony/Component/DependencyInjection/ ContainerBuilder.php:398 0.6988 8916292 8. Symfony\Component\DependencyInjection \Compiler\ResolveParameterPlaceHoldersPass->process() /usr/local/zend/ apache2/htdocs/pchapman/vendor/symfony/src/Symfony/Component/ DependencyInjection/Compiler/Compiler.php:110 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en