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

ENH Use guzzle for oembed #10311

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented May 11, 2022

Issue #10305

Note: cwp-core 2.10.0 which has the old curl config has already been tagged as part of 4.11.0-beta1 release, so assumption is that we'd release the fix on cwp-core as a patch release 2.10.1. Hence the composer conflict of "cwp/cwp-core": "<2.10.1"

class: GuzzleHttp\Client
Embed\Http\Crawler:
constructor:
- '%$Psr\Http\Client\ClientInterface.oembed'
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a good idea using Guzzle all the time.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm thinking maybe in some later PR we'll want to define a global HTTP client that people can use for every request. But that's another PR for another day.

@emteknetnz emteknetnz force-pushed the pulls/4.11/oembed branch from d3144b9 to 415d940 Compare May 11, 2022 03:30
@emteknetnz emteknetnz marked this pull request as ready for review May 11, 2022 04:23
@emteknetnz emteknetnz force-pushed the pulls/4.11/oembed branch from 415d940 to c72efa0 Compare May 11, 2022 04:38
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Tested locally, works great. I don't think this is something we can explicitly test.

@GuySartorelli GuySartorelli merged commit 62bf312 into silverstripe:4.11 May 11, 2022
@GuySartorelli GuySartorelli deleted the pulls/4.11/oembed branch May 11, 2022 21:22
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