-
Notifications
You must be signed in to change notification settings - Fork 16
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
Redesign of Parser and Render #11
base: master
Are you sure you want to change the base?
Conversation
Ok for me, just fix unit test :) |
@brunomp any news ? |
1 similar comment
@brunomp any news ? |
@@ -1,14 +1,18 @@ | |||
{ | |||
"name": "euskadi31/Opengraph", | |||
"name": "brunomp/opengraph", |
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.
Package name should remain the same
|
||
$data = array( | ||
$property . ':url' => $content |
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.
self::OG_IMAGE needs ':url' suffix to be added
@brunomp any news ? |
Parser replaced the class Reader and Render replaced the class Writer. It is now possible to render Opengraph in Json and restore it with ParserJson. The new design allows new Parser types and new Render types to be created without the need to change the Opengraph class (Open-closed principle of SOLID).