[Symfony \ Component \ Debug \ Exception \ ContextErrorException]可捕获的致命错误:传递给Symfony \ Component \ Security \ Core \ Authentication \ Provider \ SimpleAuthenticationProvider :: __ construct()的参数2必须实现接口Symfony \ Component \ Security \ Core \ User \ UserProviderInterface,Delivve \ WebBundle \ Service \ WebKeyUsersService实例,在第4611行的/home/delivve-webservice/app/cache/de_/ap_DevDebugProjectContainer.php中调用并定义
会发生什么事情,我有一个api工作,但现在我需要制作Web服务日志面或谷歌帐户,但上述错误,请按照本教程制作http://nyrodev.info/fr/posts/286/Connexions-OAuth-Multiple-avec-Symfony-2-3
OAuthMembersService.php文件中的apena包括useSymfony \ Bundle \ SecurityBundle \ DependencyInjection \ Security \ UserProvider \ UserProviderFactoryInterface;因为symfony抱怨没有这样的进口 .
1 回答
我真的很怀疑
我实现了以下类:
这些是我的配置:
routingSecurityOAuth.yml
服务
安全
路由
config