Ejemplo n.º 1
0
 /**
  * @param string $data
  *
  * @return mixed
  * @throws Exception\TomlThawException
  */
 public function thaw($data)
 {
     try {
         $value = Parser::fromString($data);
     } catch (Exception $e) {
         throw new Exception\TomlThawException($e);
     }
     return $value;
 }
Ejemplo n.º 2
0
 public static function decode($content)
 {
     return TomlParser::fromString($content);
 }
Ejemplo n.º 3
0
 public function parse($content)
 {
     return Toml::fromString($content);
 }
Ejemplo n.º 4
0
 /**
  * Deserializes Frontmatter data in the Toml format.
  *
  * @param string $data
  *
  * @return object
  */
 public function deserialize($data)
 {
     return Parser::fromString($data);
 }