Reply
Symfony2 ccdnusersecuritybundle service dependency error
Replies: 1   Views: 1401  Subscribers: 3

Posted by khalid · 11-09-2013 - 00:59

Hi all, actually i am new with symfony (its my first framework) and am having quite some troubles installing this CCDNUserSecurityBundle 

I followed all the instructions and all i got is this 

ServiceNotFoundException: The service "security.authentication.manager" has a dependency on a non-existent service "security.user.provider.concrete.cc_userbundle".

My code can be found here. I did not put any particular code since i dont know from where is this error comming

https://github.com/KhalidSookia/music

Thanks­

Posted by reece · 11-09-2013 - 15:18

Hi Khalid,

I looked through the src, it seems your problem is with FOSUserBundle or the Symfony's own SecurityBundle that ships with Symfony2 (not to be confused with CCDNUserSecurityBundle, as they do different things).

If you do a service dump in the console, you can see that that service is referenced from the following bundle: Symfony\Bundle\SecurityBundle, references to which can be found in these files:

­
vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml­
My advice is the go into the app/AppKernel, and disable CCDNUserSecurityBundle by commenting the line out, and doing the same in app/config.yml for CCDNUserSecurityBundle's configuration and resolving the issue with your setup regarding Symfony's own SecurityBundle first. Once you have corrected the issue then go and uncomment CCDNUserSecurityBundle, and hopefully it should be working then. My advice is to go through the setup documentation for Symfony sandbox again and then FOSUserBundle again while CCDNUserSecurityBundle is temporarily disabled as i don't believe this is related and this should hopefully point you in the right direction. Best of luck, and let me know how it goes. :)­