[英]Symfony2 error in security.yml
I need help with fixing this error and I am using symfony 2.6 我需要修复此错误的帮助,并且我正在使用symfony 2.6
ServiceNotFoundException: The service "fos_user.security.login_manager" has a dependency on a non-existent service "security.context".
ServiceNotFoundException:服务“ fos_user.security.login_manager”具有对不存在的服务“ security.context”的依赖。
security.context
is deprecated since Symfony 2.6. 从Symfony 2.6开始不推荐使用
security.context
。 You shouldn't have any problem because it's backward compatible, but you should check if you need to update your FOSUserBundle. 您应该不会有任何问题,因为它是向后兼容的,但是您应该检查是否需要更新FOSUserBundle。
Run a composer update and check it. 运行作曲家更新并进行检查。
More on the subject: http://symfony.com/blog/new-in-symfony-2-6-security-component-improvements 有关此主题的更多信息: http : //symfony.com/blog/new-in-symfony-2-6-security-component-improvements
If this doesn't solve, try the steps in this Stackoverflow answer . 如果仍然不能解决问题,请尝试执行此Stackoverflow答案中的步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.