YamlParser class

Framework\Config\Parsers\YamlParser

Class YamlParser.

Extends Framework\Config\Parsers\Parser

Defined in libraries/config/src/Parsers/YamlParser.php

Methods #

parse()
Parses an YAML file.

parse()

public static function parse(mixed $config): array

Parses an YAML file.

Parameters
  • mixed $config - path to the YAML file
Returns array - The YAML parsed data
throws
ParserException

Inherited methods #