Closed monbro closed 8 years ago
Hi, this package is only compatible with Pimple 3. Silex 1.3 comes with an older version of Pimple so you'll need to upgrade to Silex 2 to be able to use it. I'll update the documentation to explain that
makes sense, thank you, I will give it another try as I just upgraded to silex 2.0 ;)
ok, feel free to report other issues or difficulties you encounter, the documentation might be lacking…
also you might want to specify this in the composer requeirements, so composer will complain when installed with silex 1.3
well, I thought about this but I'm not sure how to do that. it does not require silex (it can be used with any framework using the symfony security component) and it could even be used with silex 1.3, the TH\OAuth2\Pimple\OAuth2ServerProvider
class is only here to simplify the setup when using silex 2. someone could use it with silex 1.3 by regestering manually the services & routes
I see, that correct, then my suggestion does not make any sense. Maybe you can clearify that a bit more in the docs.
that should be better now
I have a couple off issues, starting by
Pimple\ServiceProviderInterface
can not be found orControllerProviderInterface
can not be found. I stopped implementing at a certain point as it was a tail of errors. I tested it on "silex/silex": "~1.3" and "texthtml/oauth2-provider": "1.5.0"