Skip to content
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

Closed
brusch opened this issue Apr 24, 2017 · 12 comments · Fixed by #68
Closed

Update to league/oauth2-client ^2 #60

brusch opened this issue Apr 24, 2017 · 12 comments · Fixed by #68

Comments

@brusch
Copy link

brusch commented Apr 24, 2017

Would be good to utilize the latest major branch of league/oauth2-client to avoid dependency issues with other packages.

@JamesHesterJr
Copy link

Is there any internal ambition to do this?

@lukechesser
Copy link
Member

If you want to raise a PR, I think it would likely get merged. Sounds like there's support for it!

@paulm17
Copy link

paulm17 commented Sep 14, 2017

I really need this, so I've fired off an email to support.

@JamesHesterJr
Copy link

Let me know if you need help with it. I could use it and might have the time to do it.

@paulm17
Copy link

paulm17 commented Sep 14, 2017

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

@paulm17
Copy link

paulm17 commented Sep 15, 2017

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.

@paulm17
Copy link

paulm17 commented Sep 15, 2017

Oh and another reason for updating... You need to, when upgrading to PHP 7.

thephpleague/oauth2-client#650

@JamesHesterJr
Copy link

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.

HughbertD/oauth2-unsplash#1

@aaronklaassen
Copy link
Member

Hey folks sorry this took so long to get to - but you should be good to go with v2.3.3.

@paulm17
Copy link

paulm17 commented Oct 4, 2017

Doesn't seem to work for me.

Problem 1
    - Installation request for crewlabs/unsplash 2.3.3 -> satisfiable by crewlabs/unsplash[2.3.3].
    - crewlabs/unsplash 2.3.3 requires league/oauth2-client 1.4.2 -> satisfiable by league/oauth2-client[1.4.2] but these conflict with your requirements or minimum-stability.

Looking at the PR: 7b59e01#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780L19

I'm still seeing "league/oauth2-client": "1.4.2",

@aaronklaassen
Copy link
Member

aaronklaassen commented Oct 4, 2017

@paulm17 Ah dammit. Yeah I'll take another look. Thanks.

@paulm17
Copy link

paulm17 commented Oct 4, 2017

I posted above what I think the solution should be. Happy to test when you update it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants