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

Replace Locator and Content\Type\Sniffer with Content\Detector #849

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Art4
Copy link
Contributor

@Art4 Art4 commented Sep 13, 2023

In #731 we plan to deprecate the SimplePie\File class. The file class is required for SimplePie\Locator and SimplePie\Content\Type\Sniffer, so the plan is to deprecate this classes too. See also the discussion in #826 (comment)

This PR introduces a new interface SimplePie\Content\Detector that defines the most features of the Locator and Sniffer in 3 methods.

The SimplePie\Content\VerfiedFeedsDetector class was created for BC. It internally uses the old Locator and Sniffer classes. This is needed because Locator and Sniffer classes could be replaced by the user using the Registry.

A new SimplePie\Content\UnverfiedFeedsDetector has to be created to replace the function of Locator and Sniffer. The idea is that this Detector should not have a dependency to a HTTP client but should only work with Response classes.

This PR is under construction and requires some other PRs like #838 and a refactoring of the microformats handling in SimplePie\SimplePie::fetch_data()

This was referenced Sep 13, 2023
@Art4 Art4 mentioned this pull request Sep 21, 2023
48 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant