PHP Class StackFormation\Preprocessor

Show file Open project: aoepeople/stackformation Class Usage Examples

Public Methods

Method Description
processJson ( $json, $basePath )

Protected Methods

Method Description
base64encodedJson ( $jsonString ) : mixed
expandPort ( $jsonString )
injectFilecontent ( $jsonString, $basePath )
injectInclude ( $string, $basePath )
parseRefInDoubleQuotedStrings ( $json )
replaceFnGetAttr ( $jsonstring ) : mixed transforms {Fn::GetAtt:[resource,attribute]} to inline statement
replaceMarkers ( $json )
replaceRef ( $jsonString )
split ( $jsonString )
stripComments ( $json )

Method Details

base64encodedJson() protected method

protected base64encodedJson ( $jsonString ) : mixed
$jsonString
return mixed

expandPort() protected method

protected expandPort ( $jsonString )

injectFilecontent() protected method

protected injectFilecontent ( $jsonString, $basePath )

injectInclude() protected method

protected injectInclude ( $string, $basePath )

parseRefInDoubleQuotedStrings() protected method

protected parseRefInDoubleQuotedStrings ( $json )

processJson() public method

public processJson ( $json, $basePath )

replaceFnGetAttr() protected method

transforms {Fn::GetAtt:[resource,attribute]} to inline statement
protected replaceFnGetAttr ( $jsonstring ) : mixed
$jsonstring
return mixed

replaceMarkers() protected method

protected replaceMarkers ( $json )

replaceRef() protected method

protected replaceRef ( $jsonString )

split() protected method

protected split ( $jsonString )

stripComments() protected method

protected stripComments ( $json )