I\'m trying to load custom config but getting exception:
1/2 InvalidArgumentException in YamlFileLoader.php
There is no extension able to load the
I had the same problem, and fix it.
To register an extension you need to have same name for bundle and you extension. So, if you wanna enable your extension as cwiczenia
, your extension file must be named as CwiczeniaExtention
and bundle must be named as CwiczeniaBundle
.
Or if you don't wanna change your Bundle name (CwiczeniaDependencyInjectionBundle
), you must rename your extension to CwiczeniaDependencyInjectionExtension
and then it will be available to load the configuration as cwiczenia_dependency_injection
.
Or you can manually register extension, as mentioned above by @helios