I’m facing issues : in my security.yml I try to inject a parameter class as follow :
security:
acl:
connection: default
encoders:
%my_ubercoolbundle.user_class%
algorithm: sha512
providers:
main:
entity: { class: %my_ubercoolbundle.user_class%, property: username }
and of course this parameter is handled in my bundle Configuration and Extension classes :
->children()
->scalarNode('user_class')->defaultValue('My/UbercoolBundle/Entity/User')->end()
->end()
and
$container->setParameter('my_ubercool.user_class', $config['user_class']);
But when sf2 compiles my project, it tells me
ParameterNotFoundException: You have requested a non-existent parameter "my_ubercool.user_class".
Any idea of why it does this to me?
Thanks for your help!
Solved : It’s not possible in SF2 to inject datas from a bundle to the app configuration.