-
Notifications
You must be signed in to change notification settings - Fork 50
Add compatibility with curl-client v2 (now relying on PSR17 factories) #339
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
Conversation
83bbce5
to
6f41cd2
Compare
6f41cd2
to
db5ca50
Compare
i did #340 to remove all the old stuff that is breaking the build (as well as fixing deprecation notices from symfony 4.3) |
can you please rebase on master to hopefully get the build fixed? |
The curl-client rely on PSR17 factories, we must use those factories in the client.
This will blacklist the curl-client v1 installation since there is no way to detect which version is installed and adapt the Factory based on that information.
c6dd421
to
9a99489
Compare
Yes I've just made the rebase. |
Is there anything I can do to help merging this one? |
@deguif maybe yes ! Currently, we can't find the root cause of the travis failed build... |
I think it's the vcr-plugin which requires php-client-common |
hm, but the bundle allows client-common 2.0. is there another dependency in the same thing that is limited to client-common 1.0? |
Let's investigate this issue more in details ;) |
I think the issue is when requiring So it's not possible to use |
thanks for the analysis! then i guess we should remove vcr-plugin from require-dev and only require it in some builds of the matrix (and skip related tests in the other builds by checking for existence of the vcr plugin class) @shulard do you want to try to do that? |
Yes I try to do that asap. |
I can also do the PR @shulard if you're busy at the moment. |
@deguif I just pushed a first try 😄 |
Nice all green ;) |
3ccd3f0
to
df4cabb
Compare
Too quick, there was a typo in the .travis.yml file so I just forced push a fix 😄. |
@dbu it seems ok now. I've added the |
awesome! can you please add the vcr-plugin to the dev stability and the code-coverage build? the others are fine as is (and for lowest, it could be hiding problems if we have the plugin as it prevents installing with old versions) |
Also skip the tests which rely on it when the plugin is not installed. The tests are still executed when check httplug 2.x clients.
df4cabb
to
4cc03fa
Compare
I've updated the matrix, it still seems ok 😄. |
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.
awesome, thank you!
great, i am preparing a release now. |
It seems I got problem now with CachePlugin, as it doesn't support |
@deguif so after the update, you still got the error regarding |
We were a bit too enthousiast regarding that PR... |
With the |
Maybe we could change the constructor and its methods on the CachePlugin to take a And given the class is final, the backward compatibility for type-hint is not necessary ;) What do you think @dbu? |
@shulard @dbu I just opened: php-http/cache-plugin#56 so we can discuss on the issue I previously talked about. |
What's in this PR?
This PR contains the compatibility with php-http/curl-client v2.
Why?
Installing the bundle with the curl-client will trigger that error now :
Checklist
To Do