public static function parseYaml($yaml)
    {
        if (self::$yamlParser == null) {
            self::$yamlParser = new YamlParser;
        }

        return self::$yamlParser->parse($yaml);
    }
public static function parseYaml($yaml)
    {
        if (self::$yamlParser == null) {
            self::$yamlParser = new YamlParser;
        }

        return self::$yamlParser->parse($yaml);
    }
public static function parseYaml ( $ yaml ) { if ( self :: $ yamlParser == null ) { self :: $ yamlParser = new YamlParser ; } return self :: $ yamlParser -> parse ( $ yaml ) ; }
Parse yaml to an array

@param string $yaml
@return array
Parse yaml to an array