-
Notifications
You must be signed in to change notification settings - Fork 823
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
Replace oEmbed implementation with 3rd party library #5487
Comments
Hmmm, to bad I can not assign myself to this. I've started stripping out oEmbed in favor of oscarotero now, will possibly create a separate branch for essence if wished. p.s. |
oscarotero embed requires Guzzle 5. |
It’s optional - you can configure how the requests are resolved (it’s only in |
Also, allow me to ping @silverstripe/core-team for you @Firesphere :D |
Pong. Thanks @kinglozzer :D |
@kinglozzer is correct, Guzzle is just suggested, not required. |
+1 for oscarotero/Embed without Guzzle. essence only looks less complicated because it's spread across 3 packages, I expect ;-) |
I admit I only had a quick look at it. Will go with oscarotero then. On functionality, I doubt it'll be very much different. |
While we're at it... |
Yes please, lets pull all this stuff out :) Lots of our implementations of these features are quite MVP and have bugs that just never get round to being fixed. |
I think that solving the shortcode parser as part of this PR isn't the best idea. Get oEmbed extracted, the PR raised (and merged), and then move on to shortcodes. |
Yes, different pr |
Oh obviously different PR. Just added it here as the thought came up. Will open a new item for it when I get to it (or someone else does) |
… as Embed/Embed does sadly _not_ have a test-interface. Moved the shortcodes to statics, it makes more sense to me to have it declared static.
… as Embed/Embed does sadly _not_ have a test-interface. Moved the shortcodes to statics, it makes more sense to me to have it declared static.
… as Embed/Embed does sadly _not_ have a test-interface. Moved the shortcodes to statics, it makes more sense to me to have it declared static.
… as Embed/Embed does sadly _not_ have a test-interface. Moved the shortcodes to statics, it makes more sense to me to have it declared static.
This is done |
Follow-on from #5461.
There's no need for us to maintain our own oEmbed implementation. Let's move to a 3rd party package for this. https://github.com/oscarotero/Embed looks like a decent implementation.
https://github.com/essence/essence is another reasonably popular one, although it has more external dependencies, isn't commit to as frequently, and isn't as popular on packagist, so the oscarotero one gets my vote.
The text was updated successfully, but these errors were encountered: