【问题标题】:Symfony2.3 - HWIOAuthBundle Config ServiceNotFoundExceptionSymfony2.3 - HWIOAuthBundle 配置 ServiceNotFoundException
【发布时间】:2013-07-05 12:29:44
【问题描述】:

我想安装这个捆绑包。我按照所有步骤操作,但出现此错误:

Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException' with message 'You have requested a non-existent service "hwi_oauth.resource_ownermap.main".' in /home/Project/app/bootstrap.php.cache:1894

有人有想法吗?

【问题讨论】:

  • 这太简洁了。我们在这里需要更多的东西,比如你的 conf 等等。

标签: php symfony bundle config hwioauthbundle


【解决方案1】:

我在这里找到了解决方案: http://www.diegocaprioli.com/adding-hwioauthbundle-to-your-symfony2-project/

你需要在config.yml中配置一个ressource_owners

【讨论】:

  • security.yml 中防火墙的 oauth/resource_owners 部分是纠正此错误所必需的。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-03-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多