我正在尝试将HWIOAuthBundle
集成到我的Symfony 4.1
应用程序中。
我遵循了有关捆绑软件安装的文档。这是我的配置文件的片段:
# config/packages/hwi_oauth.yaml
hwi_oauth:
# list of names of the firewalls in which this bundle is active, this setting MUST be set
firewall_names: [secured_area]
# https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/2-configuring_resource_owners.md
resource_owners:
google:
type: google
client_id: '%env(GOOGLE_AUTH_ID)%'
client_secret: '%env(GOOGLE_AUTH_SECRET)%'
scope: "email"
options:
display: popup
csrf: true
# config/services.yaml
services:
hwi_oauth.resource_ownermap.secured_area:
class: HWI\Bundle\OAuthBundle\Security\Http\ResourceOwnerMap
# config/security.yml
security:
firewalls:
secured_area:
anonymous: ~
oauth:
resource_owners:
google: "/login/check-google"
login_path: "/login"
use_forward: false
failure_path: "/login"
oauth_user_provider:
service: hwi_oauth.user.provider
但是我跑步
composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle
我收到以下错误:
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In CheckExceptionOnInvalidReferenceBehaviorPass.php line 31:
!!
!! The service "hwi_oauth.security.oauth_utils" has a dependency on a non-exis
!! tent service "hwi_oauth.resource_ownermap.secured_area".
!!
!!
!!
Script @auto-scripts was called via post-update-cmd
我在做什么错了?