Skip to content

Support PSR-17 #52

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 4 commits into from
Jan 24, 2019
Merged

Support PSR-17 #52

merged 4 commits into from
Jan 24, 2019

Conversation

mekras
Copy link
Collaborator

@mekras mekras commented Dec 26, 2018

Closes #41
Requires php-http/discovery#116

@dbu
Copy link
Contributor

dbu commented Dec 30, 2018

cool! i think this is mainly a refactoring for psr-17 (the message factories) rather than psr-18 (which would replace the httplug client interface). as there is no async psr yet, i think this is the correct approach. httplug client 2.0 extends the psr-18 client, so this now is a psr-18 client (plus a httplug client)

there are some conflicts, can you rebase on master?

MessageFactory $messageFactory = null,
StreamFactory $streamFactory = null,
ResponseFactoryInterface $responseFactory = null,
StreamFactoryInterface $streamFactory = null,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe make these required?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm for that.

Copy link
Contributor

Choose a reason for hiding this comment

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

we can now use the psr17 factory for these. lets keep using that for ease of use?

mekras and others added 2 commits January 10, 2019 10:51
# Conflicts:
#	tests/BaseUnitTestCase.php
#	tests/CurlPromiseTest.php
#	tests/Functional/HttpClientTestCase.php
#	tests/HttpAsyncClientTestCase.php
@dbu dbu force-pushed the issue-41-psr-18 branch from e37ff48 to dd13842 Compare January 24, 2019 11:41
@dbu dbu changed the title WIP: Support PSR-18 Support PSR-17 Jan 24, 2019
@dbu dbu mentioned this pull request Jan 24, 2019
@dbu dbu merged commit b580c94 into master Jan 24, 2019
@dbu dbu deleted the issue-41-psr-18 branch January 24, 2019 11:44
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.

3 participants