Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Yaml Class Reference

YAML config reader. More...

Public Member Functions

 __construct ($yamlDecoder=null)
 Constructor.
 
 setYamlDecoder ($yamlDecoder)
 Set callback for decoding YAML.
 
 getYamlDecoder ()
 Get callback for decoding YAML.
 
 fromFile ($filename)
 fromFile(): defined by Reader interface.
 
 fromString ($string)
 fromString(): defined by Reader interface.
 

Protected Member Functions

 process (array $data)
 Process the array for.
 

Protected Attributes

 $directory
 
 $yamlDecoder
 

Detailed Description

YAML config reader.

Constructor & Destructor Documentation

__construct (   $yamlDecoder = null)

Constructor.

Parameters
callable$yamlDecoder

Member Function Documentation

fromFile (   $filename)

fromFile(): defined by Reader interface.

See Also
ReaderInterface::fromFile()
Parameters
string$filename
Returns
array
Exceptions
Exception\RuntimeException

Implements ReaderInterface.

fromString (   $string)

fromString(): defined by Reader interface.

See Also
ReaderInterface::fromString()
Parameters
string$string
Returns
array|bool
Exceptions
Exception\RuntimeException

Implements ReaderInterface.

getYamlDecoder ( )

Get callback for decoding YAML.

Returns
callable
process ( array  $data)
protected

Process the array for.

Parameters
array$data
Returns
array
Exceptions
Exception\RuntimeException
setYamlDecoder (   $yamlDecoder)

Set callback for decoding YAML.

Parameters
string | callable$yamlDecoderthe decoder to set
Returns
Yaml
Exceptions
Exception\RuntimeException

Member Data Documentation

$directory
protected
$yamlDecoder
protected