Beispiel #1
0
 /**
  * Reads and parses a yaml file and returns the array
  *
  * @param string $file
  * @return array
  */
 public static function read($file)
 {
     return spyc::yamlload($file);
 }
Beispiel #2
0
 public static function loadString($data)
 {
     $s = new \spyc();
     return $s->YAMLLoadString($data);
 }