PHP Class Webiny\Component\Config\Drivers\YamlDriver

Inheritance: extends AbstractDriver
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
__construct ( $resource = null )
setIndent ( integer $indent ) Set Yaml indent

Protected Methods

Method Description
getArrayInternal ( ) : array Parse config resource and build config array
getStringInternal ( ) : string Get config as Yaml string

Method Details

__construct() public method

public __construct ( $resource = null )

getArrayInternal() protected method

Parse config resource and build config array
protected getArrayInternal ( ) : array
return array Config data array

getStringInternal() protected method

Get config as Yaml string
protected getStringInternal ( ) : string
return string

setIndent() public method

Set Yaml indent
public setIndent ( integer $indent )
$indent integer