Skip to content

Redesign of Parser and Render#11

Open
brunomp wants to merge 12 commits into
euskadi31:masterfrom
brunomp:master
Open

Redesign of Parser and Render#11
brunomp wants to merge 12 commits into
euskadi31:masterfrom
brunomp:master

Conversation

@brunomp
Copy link
Copy Markdown

@brunomp brunomp commented Feb 6, 2019

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).

@euskadi31 euskadi31 self-requested a review February 6, 2019 20:55
@euskadi31 euskadi31 added this to the v2.0.0 milestone Feb 6, 2019
@euskadi31
Copy link
Copy Markdown
Owner

Ok for me, just fix unit test :)

@euskadi31
Copy link
Copy Markdown
Owner

@brunomp any news ?

1 similar comment
@euskadi31
Copy link
Copy Markdown
Owner

@brunomp any news ?

Comment thread composer.json
@@ -1,14 +1,18 @@
{
"name": "euskadi31/Opengraph",
"name": "brunomp/opengraph",
Copy link
Copy Markdown

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

case self::OG_IMAGE_URL:

$data = array(
$property . ':url' => $content
Copy link
Copy Markdown

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

@euskadi31
Copy link
Copy Markdown
Owner

@brunomp any news ?

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