YAML config reader.

category Zend
package Zend_Config
subpackage Reader

 Methods

Constructor

__construct(\Zend\Config\Reader\callable $yamlDecoder) 

Parameters

$yamlDecoder

\Zend\Config\Reader\callable

fromFile(): defined by Reader interface.

fromFile(string $filename) : array

see \Zend\Config\Reader\ReaderInterface::fromFile()

Parameters

$filename

string

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

array

fromString(): defined by Reader interface.

fromString(string $string) : array | bool

see \Zend\Config\Reader\ReaderInterface::fromString()

Parameters

$string

string

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

arraybool

Get callback for decoding YAML

getYamlDecoder() : \Zend\Config\Reader\callable

Returns

\Zend\Config\Reader\callable

Set callback for decoding YAML

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

Parameters

$yamlDecoder

string\Zend\Config\Reader\callable

the decoder to set

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

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

 

YAML decoder callback

$yamlDecoder : \Zend\Config\Reader\callable