mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10311 from creative-commoners/pulls/4.11/oembed
ENH Use guzzle for oembed
This commit is contained in:
commit
62bf312263
@ -4,6 +4,11 @@ Name: coreoembed
|
|||||||
SilverStripe\Core\Injector\Injector:
|
SilverStripe\Core\Injector\Injector:
|
||||||
SilverStripe\View\Embed\Embeddable:
|
SilverStripe\View\Embed\Embeddable:
|
||||||
class: SilverStripe\View\Embed\EmbedContainer
|
class: SilverStripe\View\Embed\EmbedContainer
|
||||||
|
Psr\Http\Client\ClientInterface.oembed:
|
||||||
|
class: GuzzleHttp\Client
|
||||||
|
Embed\Http\Crawler:
|
||||||
|
constructor:
|
||||||
|
- '%$Psr\Http\Client\ClientInterface.oembed'
|
||||||
Embed\Embed:
|
Embed\Embed:
|
||||||
constructor:
|
constructor:
|
||||||
- '%$Embed\Http\Crawler'
|
- '%$Embed\Http\Crawler'
|
||||||
|
@ -60,7 +60,8 @@
|
|||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
"egulias/email-validator": "^2",
|
"egulias/email-validator": "^2",
|
||||||
"phpunit/phpunit": "^6 || ^7 || ^8"
|
"phpunit/phpunit": "^6 || ^7 || ^8",
|
||||||
|
"cwp/cwp-core": "<2.11.0"
|
||||||
},
|
},
|
||||||
"provide": {
|
"provide": {
|
||||||
"psr/container-implementation": "1.0.0"
|
"psr/container-implementation": "1.0.0"
|
||||||
|
@ -265,6 +265,19 @@ SilverStripe\AssetAdmin\Forms\RemoteFileFormFactory:
|
|||||||
HtmlEditorConfig::get('cms')->disablePlugins('ssembed');
|
HtmlEditorConfig::get('cms')->disablePlugins('ssembed');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Use the following config if you need to send outbound requests through a proxy:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
Name: myembed
|
||||||
|
After: coreoembed
|
||||||
|
---
|
||||||
|
SilverStripe\Core\Injector\Injector:
|
||||||
|
Psr\Http\Client\ClientInterface.oembed:
|
||||||
|
constructor:
|
||||||
|
- proxy: '111.222.333.444:55'
|
||||||
|
```
|
||||||
|
|
||||||
## Limiting oembed URLs
|
## Limiting oembed URLs
|
||||||
|
|
||||||
HtmlEditorField can have whitelists set on both the scheme (default http & https) and domains allowed when
|
HtmlEditorField can have whitelists set on both the scheme (default http & https) and domains allowed when
|
||||||
|
@ -102,6 +102,7 @@ This release includes a number of bug fixes to improve a broad range of areas. C
|
|||||||
|
|
||||||
- If `guzzlehttp/guzzle` is required, it must now be at least `7.3.0`. This was done to ensure that v2 of `guzzlehttp/psr7` is installed, which is used by `embed/embed` v4
|
- If `guzzlehttp/guzzle` is required, it must now be at least `7.3.0`. This was done to ensure that v2 of `guzzlehttp/psr7` is installed, which is used by `embed/embed` v4
|
||||||
- `embed/embed` has been upgraded from v3 to v4. The internal implementation of the internal `Embeddable` interface has been changed from `EmbedResource` to `EmbedContainer`
|
- `embed/embed` has been upgraded from v3 to v4. The internal implementation of the internal `Embeddable` interface has been changed from `EmbedResource` to `EmbedContainer`
|
||||||
|
- `embed/embed` has been configured to use a guzzle client instead of the default curl client so that a proxy configuration value can be set if required
|
||||||
|
|
||||||
<!--- Changes below this line will be automatically regenerated -->
|
<!--- Changes below this line will be automatically regenerated -->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user