YAML config reader.

package Default

 Methods

Constructor

__construct(callable $yamlDecoder = null

Parameters

$yamlDecoder

callable

fromFile(): defined by Reader interface.

fromFile(string $filename) : array
see
inherited_from \Zend\Config\Reader\ReaderInterface::fromFile()

Parameters

$filename

string

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

array

fromString(): defined by Reader interface.

fromString(string $string) : array | boolean
see
inherited_from \Zend\Config\Reader\ReaderInterface::fromString()

Parameters

$string

string

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

arrayboolean

Get callback for decoding YAML

getYamlDecoder() : callable

Returns

callable

Set callback for decoding YAML

setYamlDecoder(string|callable $yamlDecoder) : \Zend\Config\Reader\Yaml

Parameters

$yamlDecoder

stringcallable

the decoder to set

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

\Zend\Config\Reader\Yaml

Process the array for @include

process(array $data) : array

Parameters

$data

array

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

array

 Properties

 

Directory of the YAML file

$directory : string

Default

 

YAML decoder callback

$yamlDecoder : callable

Default