Also, keep in mind that the root key of the configuration file must be a normalized form of the Bundle’s name.
This is something I’ve encoutered a few times and it’s very frustrating to solve if you’re not aware of it.
Example: if bundle is called MyFirstAwesomeBundle
, then the root key in the file must be my_first_awesome
. So camel-case is converted to snake-case and the word “bundle” is ignored or stripped away.
So simply having the root key in your file match exactly the value specified in Configuration::getConfigTreeBuilder()
is not enough.
If you don’t follow this rule, then you’ll get the There is no extension able to load the configuration
error.
I hope this will help the next desperate soul who ends up on this page…