Skip to content

Switch to PSR-17 and remove deprecated code - #888

Merged
acrobat merged 5 commits into
KnpLabs:masterfrom
GrahamCampbell:depr
Jul 6, 2020
Merged

Switch to PSR-17 and remove deprecated code#888
acrobat merged 5 commits into
KnpLabs:masterfrom
GrahamCampbell:depr

Conversation

@GrahamCampbell

@GrahamCampbell GrahamCampbell commented Jun 28, 2020

Copy link
Copy Markdown
Contributor

This PR removes all the deprecated code from the codebase, and switches to PSR-17 which replaces the old PHP HTTP interfaces, just like PSR-18 replaced some of the others (implemented in an earlier PR).

@GrahamCampbell
GrahamCampbell marked this pull request as draft June 28, 2020 19:02
@GrahamCampbell
GrahamCampbell marked this pull request as ready for review June 28, 2020 19:22
@acrobat acrobat linked an issue Jun 29, 2020 that may be closed by this pull request
Comment thread doc/security.md Outdated
@GrahamCampbell GrahamCampbell changed the title Removed deprecated code Switch to PSR-17 and remove deprecated code Jul 2, 2020

@acrobat acrobat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add an upgrade file so users have a summary on what was removed/changed and maybe add some info on what packages to remove/replace to move to the psr18 implementation from an existing setup. thanks!

Comment thread lib/Github/HttpClient/Plugin/Authentication.php Outdated
Comment thread test/Github/Tests/Api/RateLimitTest.php
Comment thread lib/Github/Client.php Outdated
@acrobat

acrobat commented Jul 3, 2020

Copy link
Copy Markdown
Collaborator

Thanks for the work already @GrahamCampbell! Just a few comments/changes.

@GrahamCampbell

Copy link
Copy Markdown
Contributor Author

Just rebased and applied changes based on the feedback.

@GrahamCampbell

Copy link
Copy Markdown
Contributor Author

@acrobat If you do another 2.x -> master merge, I'll rebase this PR again, so that you don't have additional merge conflicts in the authentication class later on.

@acrobat

acrobat commented Jul 4, 2020

Copy link
Copy Markdown
Collaborator

Upmerge is done!

@GrahamCampbell

Copy link
Copy Markdown
Contributor Author

Build green now. :)

@acrobat
acrobat merged commit 4619ebd into KnpLabs:master Jul 6, 2020
@acrobat

acrobat commented Jul 6, 2020

Copy link
Copy Markdown
Collaborator

Thanks a lot for your work on this @GrahamCampbell!

@GrahamCampbell
GrahamCampbell deleted the depr branch July 6, 2020 19:24
@GrahamCampbell

Copy link
Copy Markdown
Contributor Author

No problem. :)

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 this pull request may close these issues.

Remove "shadow-cat" preview header

3 participants