2016-09-06 44 views
1

我用HWIOAuthBundle的Facebook登錄和我從2.8.9到2.8.10更新後出現此錯誤:Symfony 2.8&HWIOAuthBundle:您已請求合成服務(「請求」)。該DIC不知道如何構建這個服務

You have requested a synthetic service ("request"). The DIC does not know how to construct this service. 

我已閱讀並https://github.com/symfony/symfony/issues/19840看來有些人克服這個問題,但我的依然存在。

以下是可能導致錯誤的配置。

config.yml:

hwi_oauth: 
    firewall_name: secured_area 
    http_client: 
     verify_peer: false 
    resource_owners: 
     facebook: 
      type:   facebook 
      client_id:  "%facebook_client_id%" 
      client_secret: "%facebook_client_secret%" 
      scope:   email 
      infos_url:  https://graph.facebook.com/me?fields=id,email,first_name,last_name 
      options: 
       display: popup 
       auth_type: rerequest 

security.yml:

firewalls: 
    oauth: 
     resource_owners: 
       facebook: /sign-in/check-facebook 
      login_path:  /sign-in 
      use_forward: false 
      failure_path: /sign-in 
      oauth_user_provider: 
       service: my_custom_user_provider 

回答

0

的Symfony 2.8.11固定的問題。從2.8.10更新到2.8.11之後,錯誤不再出現。

相關問題