IDCI-Consulting / IDCIKeycloakSecurityBundle

Other
46 stars 46 forks source link

Avoid autowiring for KeycloakResourceOwner class. #1

Closed burahimu closed 5 years ago

burahimu commented 5 years ago

I've got the following error when using the bundle

Cannot autowire service "IDCI\Bundle\KeycloakSecurityBundle\Provider\KeycloakResourceOwner": argument "$token" of method "__construct()" references class "League\OAuth2\Client\Token\AccessToken" but no such service exists.

I suppose that KeycloakResourceOwner does not have to be a service because it is created in this factory method.

Am I wrong ?