-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to league/oauth2-client
^2
#60
Comments
Is there any internal ambition to do this? |
If you want to raise a PR, I think it would likely get merged. Sounds like there's support for it! |
I really need this, so I've fired off an email to support. |
Let me know if you need help with it. I could use it and might have the time to do it. |
I asked them if this was all that was needed... https://github.com/unsplash/unsplash-php/blob/master/composer.json#L19 Changing "league/oauth2-client": "1.4.2", to "league/oauth2-client": ">=2.2.1", ? Edit... This as well?? https://github.com/HughbertD/oauth2-unsplash/blob/master/composer.json#L24 |
Seems like that's the first line is the only change. I have 2.0 working, by hacking the process. I installed with oauth2-client on it's own and then moved it to a directory elsewhere. Then do the actual installation with all the packages I need with oauth2-client version 1. After that, rename veraion 1 to oauth2-client-1.4.2 in the league directory under vendor. Copy in version 2 (into the same league directory) from elsewhere earlier. Now you have version 2. |
Oh and another reason for updating... You need to, when upgrading to PHP 7. |
So I finally got around to looking into this. and as far as I can tell, it's actually just a tiny issue with the versioning. The league/oauth2-client package requires version ^1 which prevents v2 from working, but in fact it is capable of working with v2. I submitted a PR with explanation to get this fixed. The composer.lock used (and used with testing) actually uses V2 of the oauth2-client library. All he should have to do is change these characters, and potentially create a new composer.lock if he wants that shipped with the package. Let me know if you need anything else. |
Hey folks sorry this took so long to get to - but you should be good to go with |
Doesn't seem to work for me.
Looking at the PR: 7b59e01#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780L19 I'm still seeing "league/oauth2-client": "1.4.2", |
@paulm17 Ah dammit. Yeah I'll take another look. Thanks. |
I posted above what I think the solution should be. Happy to test when you update it again. |
Would be good to utilize the latest major branch of
league/oauth2-client
to avoid dependency issues with other packages.The text was updated successfully, but these errors were encountered: