Closed LeoAdamek closed 10 months ago
Disregard, somehow in the process of swapping, the bundles.php
config got mangled with the following:
FOS\OAuthServerBundle\FOSOAuthServerBundle::class => [0 => true, 1 => true]
instead of ['all' => true]
Not sure how this happened but that meant the bundle wasn't even loaded!
Hello,
I'm glad that this repo helps you too. 😄
Previously with the original version of this bundle, I was able to inject the
fos_oauth_server.server
andfos_oauth_server.storage.default
services.I use this as my authorization and client creation endpoints are implemented in GraphQL. However, in switching to your (very helpful!) fork, any method I try to inject these services fails.
I've tried using a service locator, but it errors with
fos_oauth_server.server
andfos_oauth_server.storage.default
not existing. I've also tried directly injecting theOAuthStorage
class which also fails as not existing../bin/console debug:container
doesn't list either service so I'm confused as to what's going on because I can see their definitions are still present in this repo.I'll continue to dig and see what I can find but I'm very confused!
My previous implementation looked like this:
However now neither service seems to exist and the container fails to compile.