Hi there, I'm stuck on a parameter issue.
I defined a service in a services.yml: services: winzou_book.entry_manager: class: %winzou_book.entry.manager.class% arguments: [@doctrine.orm.entity_manager, %winzou_book.entry.entity.class%] If a put a parameters section on top of this file with the 2 parameters used here, it's ok my service is working well. Now I want these parameters to be set in the app/config.yml. Here is what I tried: In the Bundle\DependencyInjection\BundleExtension I call a new Configuration (stored at Bundle\DependencyInjection\Configuration), in which I define a tree of options. In the Extension, if I do a var_dump($processor->process($configuration->getConfigTree(), $configs)), it displays me the good tree with the 2 parameters set, no problem. But, after this processed I load my services.yml, and it throws me this (uncaught?) Exception : *Fatal error*: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\NonExistentParameterException' with message 'The service "winzou_book.entry_manager" has a dependency on a non-existent parameter "winzou_book.entry.manager.class".' in asso\vendor\symfony\src\Symfony\Component\DependencyInjection\ParameterBag\ParameterBag.php:79 But this parameter exists! I can see it in my var_dump(). So question is: where am I wrong? How come the services.yml doesn't have access to the configuration I just load from app/config.yml? The gist: https://gist.github.com/972258 Thanks. -- 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