PHP Class Liip\RMT\Config\Handler

Show file Open project: liip/rmt Class Usage Examples

Public Methods

Method Description
__construct ( $rawConfig = null, $projectRoot = null )
getBaseConfig ( )
getConfigForBranch ( $branchName )
getDefaultConfig ( )

Protected Methods

Method Description
findClass ( $name, $sectionName ) Sub part of the normalize()
findInternalClass ( $name, $sectionName ) Sub part of the normalize()
getClassAndOptions ( $rawConfig, $sectionName ) Sub part of the normalize()
mergeConfig ( $branchName = null )
normalize ( $config ) Normalize all config entry to be a normalize class entry: array("class"=>XXX, "options"=>YYY)
prepareConfigFor ( $branch )
validateRootElements ( $config )

Method Details

__construct() public method

public __construct ( $rawConfig = null, $projectRoot = null )

findClass() protected method

Sub part of the normalize()
protected findClass ( $name, $sectionName )

findInternalClass() protected method

Sub part of the normalize()
protected findInternalClass ( $name, $sectionName )

getBaseConfig() public method

public getBaseConfig ( )

getClassAndOptions() protected method

Sub part of the normalize()
protected getClassAndOptions ( $rawConfig, $sectionName )

getConfigForBranch() public method

public getConfigForBranch ( $branchName )

getDefaultConfig() public method

public getDefaultConfig ( )

mergeConfig() protected method

protected mergeConfig ( $branchName = null )

normalize() protected method

Normalize all config entry to be a normalize class entry: array("class"=>XXX, "options"=>YYY)
protected normalize ( $config )

prepareConfigFor() protected method

protected prepareConfigFor ( $branch )

validateRootElements() protected method

protected validateRootElements ( $config )