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

feat(admin-plugin): YAML parsing will be cached in production #263

This commit is contained in:
Awilum
2019-10-19 00:16:45 +03:00
parent 9abe9fd568
commit cc29bd9507

View File

@@ -62,12 +62,12 @@ class Parser
/**
* Dumps a PHP value to a string CONTENT.
*
* @param string $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.
*/
public function encode(string $input, string $parser) : string
public function encode($input, string $parser) : string
{
switch ($parser) {
case 'frontmatter':
@@ -83,7 +83,7 @@ class Parser
break;
default:
break;
}
}