For people interested in the solution. Actually the $processor->process() doesn't register any parameter. It just parses the content of $configs, which is the content of app/config/config.yml. So you have to manually (??) register each parameter into the container. This can be done thanks to these functions :
/** * @see Symfony\Component\DependencyInjection\Extension.ExtensionInterface::load() */ public function load(array $configs, ContainerBuilder $container) { $processor = new Processor(); $configuration = new Configuration(); $config = $processor->process($configuration->getConfigTree(), $configs); // this line is the key $this->bindParameter($container, 'winzou_book', $config); $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services.yml'); } /** * Set the given parameters to the given container * @param ContainerBuilder $container * @param string $name * @param mixed $value */ private function bindParameter(ContainerBuilder $container, $name, $value) { if( is_array($value) ) { foreach( $value as $index => $val ) { $this->bindParameter($container, $name.'.'.$index, $val); } } else { $container->setParameter($name, $value); } } You have to go through each dimension of $config to define the appropriate name for the parameter (I want $config['foo']['bar']['stuff'] to become your_root_alias.foo.bar.stuff in my case). If there is a better solution, without using my home-made function, I'm still interested. -- 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