PHP Class HippoPHP\Hippo\Config\YAMLConfigReader

Inheritance: implements HippoPHP\Hippo\Config\ConfigReaderInterface
Show file Open project: hippophp/hippo

Protected Properties

Property Type Description
$fileSystem
$parser

Public Methods

Method Description
__construct ( FileSystem $fileSystem )
loadFromFile ( string $filename ) : Config
loadFromString ( string $string ) : Config

Private Methods

Method Description
load ( array $config, mixed $filename = false ) : Config
mergeRecursive ( $array1, $array2 ) : array<
normalizeConfigName ( string $name ) : string Normalizes a configuration filename.
parseFile ( string $filePath ) : array<
parseString ( string $string ) : array<

Method Details

__construct() public method

public __construct ( FileSystem $fileSystem )
$fileSystem HippoPHP\Hippo\FileSystem

loadFromFile() public method

public loadFromFile ( string $filename ) : Config
$filename string
return Config

loadFromString() public method

public loadFromString ( string $string ) : Config
$string string
return Config

Property Details

$fileSystem protected property

protected $fileSystem

$parser protected property

protected $parser