1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 21:56:25 +02:00

refactor(core): Parser API's refactoring #288

This commit is contained in:
Awilum
2019-11-11 21:02:36 +03:00
parent 43efd29862
commit b7810861c2

View File

@@ -65,7 +65,7 @@ class Parser
/**
* Dumps a PHP value to a string CONTENT.
*
* @param mixed $input Content to parse
* @param mixed $input Content to parse
* @param string $parser Parser type [frontmatter, json, yaml]
*
* @return mixed PHP value converted to a string CONTENT.
@@ -74,7 +74,7 @@ class Parser
{
switch ($parser) {
case 'frontmatter':
return Parser::encode($input);
return Frontmatter::encode($input);
break;
case 'json':
@@ -86,7 +86,6 @@ class Parser
break;
default:
break;
}
}