i am new to Symfony2 and need to create a Custom Authentication Provider, so i read the How to create a custom Authentication Provider.
I created all classes, also the Custom User Provider from How to create a custom User Provider but i am getting this Exception:
RuntimeException: The parent definition "wsse.security.authentication.provider" defined for definition "security.authentication.provider.wsse.wsse_secured" does not exist.
I copy/pasted all classes and configuration parts from the Cookbook and only changed my Bundlename.
As mentioned in comments above – for those having the same problem I think Reza Sanaie’s answer not the intended solution.
You should better check if you have a file /DependencieInjection/Security/{Vendor}{YourBundleName}Extension.php in your Bundle. The file needs to have the correct filename and the class will be executed by symfony2 kernel automatically.
If you have a look into the class-code of this file you will see something like
This will load your services.yml and the problem should be solved.