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

Inheritance: implements Webiny\Component\Config\Bridge\Yaml\YamlInterface, use trait Webiny\Component\StdLib\StdLibTrait
Afficher le fichier Open project: Webiny/Framework

Méthodes publiques

Méthode 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

Méthode 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 méthode

Get Yaml value as array
public getArray ( ) : array
Résultat array Parsed Yaml array

getString() public méthode

Get Yaml value as string
public getString ( integer $indent = 4 ) : string
$indent integer
Résultat string Yaml string

setResource() public méthode

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