PHP Class Webiny\Component\Config\Bridge\Yaml\SymfonyYaml\SymfonyYaml

Inheritance: implements Webiny\Component\Config\Bridge\Yaml\YamlInterface, use trait Webiny\Component\StdLib\StdLibTrait
ファイルを表示 Open project: Webiny/Framework

Public Methods

Method Description
getArray ( ) : array Get Yaml value as array
getString ( integer $indent = 4 ) : string Get Yaml value as string
setResource ( $resource ) Set resource to work on

Private Methods

Method Description
parseResource ( ) : string Parse given Yaml resource and build array This method must support file paths (string or StringObject) and FileObject
toString ( ) Convert given data to Yaml string

Method Details

getArray() public method

Get Yaml value as array
public getArray ( ) : array
return array Parsed Yaml array

getString() public method

Get Yaml value as string
public getString ( integer $indent = 4 ) : string
$indent integer
return string Yaml string

setResource() public method

Set resource to work on
public setResource ( $resource )
$resource