Skip to content

[10.0] Switch to PSR-17 and PSR-18 #511

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

Merged
merged 3 commits into from
Jul 3, 2020
Merged

[10.0] Switch to PSR-17 and PSR-18 #511

merged 3 commits into from
Jul 3, 2020

Conversation

GrahamCampbell
Copy link
Member

@GrahamCampbell GrahamCampbell commented Jun 28, 2020

HTTP Plug 1 is deprecated and HTTP Plug 2 recommends only using PSR-17 and PSR-18, rather than the old interfaces. Moreover, Guzzle 7 only implements the new interfaces, so this will be a blocker for anyone wanting to upgrade from Guzzle 6 to 7 and use this package at the same time. I've also fixed a bunch of static analysis errors and added support for cache plugins (just like in KnpLabs/php-github-api).

Note that these changes require bumping the next version of this package to 10.0.0, which is fine. Upgrading shouldn't be hard for people. ;)


Related: KnpLabs/php-github-api#885, BitbucketPHP/Client#39, BitbucketPHP/Client#53, php-http/discovery#175.

@GrahamCampbell GrahamCampbell changed the title Switch to PSR18 client impl Switch to PSR18 client implementation Jun 28, 2020
acrobat added a commit to KnpLabs/php-github-api that referenced this pull request Jun 28, 2020
…inimum version to ^2.0 (GrahamCampbell)

This PR was merged into the 2.15.x-dev branch.

Discussion
----------

`php-http/client-implementation` is deprecated and Guzzle 7 doesn't implement it, so this will be a blocker for anyone wanting to upgrade from Guzzle 6 to 7 and use this package at the same time.

---

Related: GitLabPHP/Client#511, BitbucketPHP/Client#39, php-http/discovery#175.

Commits
-------

ec31be1 Switch to PSR18 client impl
@GrahamCampbell GrahamCampbell changed the title Switch to PSR18 client implementation Switch to PSR-17 and PSR-18 Jul 2, 2020
@m1guelpf
Copy link
Member

m1guelpf commented Jul 2, 2020

Is this ready for merging?

@GrahamCampbell
Copy link
Member Author

GrahamCampbell commented Jul 2, 2020

@m1guelpf Yes, however before merging, I'd recommend you branch off a 9.17 branch from master, since this PR will make master become 10.0. :)

@GrahamCampbell GrahamCampbell merged commit 4fbdb97 into GitLabPHP:master Jul 3, 2020
@GrahamCampbell GrahamCampbell deleted the psr18 branch July 3, 2020 08:11
@GrahamCampbell GrahamCampbell changed the title Switch to PSR-17 and PSR-18 [10.0] Switch to PSR-17 and PSR-18 Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants