-
Notifications
You must be signed in to change notification settings - Fork 385
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
Add support for PSR-18 HTTP clients #777
Merged
mblaney
merged 42 commits into
simplepie:master
from
Art4:add-psr18-http-client-support
Aug 26, 2023
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
20302b8
Create Psr7Response and Psr18Client
Art4 c023ea3
Psr18Client follows redirects
Art4 4ff0bc1
Merge branch 'split-file-into-client-and-response' into add-psr18-htt…
Art4 69cf5fb
Add tests with local files for FileClient
Art4 b5ae752
Add tests with local files for Psr18Client
Art4 188c154
Fix tests for PHP < 8.0
Art4 b0a0a0a
Merge branch 'split-file-into-client-and-response' into add-psr18-htt…
Art4 9dd5bf9
Add SimplePie::set_http_client(), add tests
Art4 9b5a099
Add integration test for loading a feed from cache
Art4 3bfd01c
Add integration tests for PSR-16 cache and PSR-18 client
Art4 b36e934
Add code examples in README.markdown for PSR-18 HTTP client and PSR-1…
Art4 b8b2373
Merge branch 'split-file-into-client-and-response' into add-psr18-htt…
Art4 b7f4650
Deprecate method SimplePie\SimplePie::set_file()
Art4 54a99bd
set SimplePie->$file to private, improve user notices
Art4 d6d2224
Fix phpdoc
Art4 74de990
Merge branch 'split-file-into-client-and-response' into add-psr18-htt…
Art4 27bee6e
Provide PSR implementations to Sanitize instead of internal HTTP Client
Art4 9059c41
Do not require internal Response interface in Sniffer
Art4 87f77e5
Accept internal Response implementations in Locator and Sniffer
Art4 803cc9a
Accept PSR implementations in Locator constructor, deprecate old argu…
Art4 136dab9
BC: Do not cache FileClient, or we wont be able to change the timeout
Art4 b9688df
Merge branch 'split-file-into-client-and-response' into add-psr18-htt…
Art4 16b440d
remove package phpdoc annotations
Art4 1a57dcd
Add Locator::set_http_client(), update CHANGELOG.md
Art4 69e6594
Restore BC in Locator::__construct()
Art4 374c7c7
Set new set_http_client() methods to final
Art4 3c3bf9a
Merge branch 'split-file-into-client-and-response' into add-psr18-htt…
Art4 c9a8f0e
Replace copyright comments with spdx notes
Art4 5361353
Merge branch 'split-file-into-client-and-response' into add-psr18-htt…
Art4 9660095
Fix tests
Art4 0c3fde1
fix code style
Art4 1ece520
Merge branch 'master' into add-psr18-http-client-support
Art4 67471c5
Merge branch 'master' into add-psr18-http-client-support
Art4 7554d6f
Fix parameter doc
Art4 a998d64
Merge branch 'master' into add-psr18-http-client-support
Art4 53d005b
Merge branch 'master' into add-psr18-http-client-support
Art4 3811a7d
run php-cs-fixer
Art4 33e27f8
Fix PHPStan errors
Art4 9a820ac
Psr7Response should always return full stream as body content
Art4 7201979
finetune tests
Art4 aceabdd
fix tests
Art4 c7330e6
ignore not fixable phpstan errors
Art4 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the type hint is not a breaking change because we have not released 1.9.0 yet.