Skip to content

Support the PSR17 request factory #190

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 1 commit into from
Jul 1, 2020
Merged

Support the PSR17 request factory #190

merged 1 commit into from
Jul 1, 2020

Conversation

GrahamCampbell
Copy link
Contributor

@GrahamCampbell GrahamCampbell commented Jun 30, 2020

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
License MIT

What's in this PR?

Http\Discovery\MessageFactoryDiscovery is deprecated, so there is no way to discover a Http\Message\RequestFactory instance using non-deprecated APIs. Http\Client\Common\HttpMethodsClient should therefore except a PSR17 request factory Psr\Http\Message\RequestFactoryInterface as well as a Http\Message\RequestFactory.

@GrahamCampbell
Copy link
Contributor Author

The CI failings are not related to my PR, and can be fixed separately.

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

thanks! some minor cleanup, otherwise looks good.

i fixed the cs failure in master, if you could rebase the build should become green.

@GrahamCampbell
Copy link
Contributor Author

So it turns out this doesn't work quite how we expected! #202 should fix this.

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.

2 participants