Symfony 2.8 和 HWIOAuthBundle:您已请求合成服务 ("request")。 DIC不知道如何构建这个服务

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

我使用 HWIOAuthBundle 登录 facebook,从 2.8.9 更新到 2.8.10 后出现此错误:

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

Symfony 2.8.11 修复了这个问题。从 2.8.10 更新到 2.8.11 后未出现错误。