YAML config 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
Returns
array
fromString(): defined by Reader interface.
fromString(string $string) : array | bool
see |
\Zend\Config\Reader\ReaderInterface::fromString() |
Parameters
$string
string
Exceptions
Returns
array
bool
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
Returns
Process the array for @include
process(array $data) : array
Parameters
$data
array
Exceptions
Returns
array
Properties
Directory of the YAML file
$directory : string
YAML decoder callback
$yamlDecoder : \Zend\Config\Reader\callable