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
Inherited methods #
-
parseOrThrow()fromFramework\Config\Parsers\Parser -
checkConfig()fromFramework\Config\Parsers\Parser -
addChild()fromFramework\Config\Parsers\Parser -
getValue()fromFramework\Config\Parsers\Parser -
ksortRecursive()fromFramework\Config\Parsers\Parser