Class Yaml

Summary

Fully Qualified Name: Zend\Config\Reader\Yaml
Implements: ReaderInterface

Description

YAML config reader.

Methods

Name Description Defined By
__construct() Constructor Yaml
fromFile() fromFile(): defined by Reader interface. Yaml
fromString() fromString(): defined by Reader interface. Yaml
getYamlDecoder() Get callback for decoding YAML Yaml
setYamlDecoder() Set callback for decoding YAML Yaml

Method Details

__construct()

Constructor

Parameter Name Type Description
$yamlDecoder callable

Returns:

fromFile()

fromFile(): defined by Reader interface.

Parameter Name Type Description
$filename string

Returns: array

fromString()

fromString(): defined by Reader interface.

Parameter Name Type Description
$string string

Returns: array|bool

getYamlDecoder()

Get callback for decoding YAML

Returns: callable

setYamlDecoder()

Set callback for decoding YAML

Parameter Name Type Description
$yamlDecoder string|callable the

Returns: self

Top