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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user