Skip to content

[HttpClient] try using php-http/discovery when nyholm/psr7 is not installed #33980

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
Oct 14, 2019

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets -
License MIT
Doc PR -

In case one has php-http/discovery, we can leverage it...

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

You may want to catch an exception whenever you are using the PSR17Discovery class. That will allow you to customise the exception message a little.

Not sure if it is needed. We have documented the errors here: http://docs.php-http.org/en/latest/discovery.html#common-errors

nicolas-grekas added a commit that referenced this pull request Oct 14, 2019
…psr7 is not installed (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[HttpClient] try using php-http/discovery when nyholm/psr7 is not installed

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

In case one has `php-http/discovery`, we can leverage it...

Commits
-------

6e0cb58 [HttpClient] try using php-http/discovery when nyholm/psr7 is not installed
@nicolas-grekas nicolas-grekas merged commit 6e0cb58 into symfony:4.4 Oct 14, 2019
@nicolas-grekas nicolas-grekas deleted the hc-discovery branch October 14, 2019 13:05
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
This was referenced Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants