Methods summary
public
mixed
|
#
load( mixed $config, array $options = array() )
Loads configuration data and returns an array of the loaded result
Loads configuration data and returns an array of the loaded result
Parameters
- $config
mixed $config Data to load (filename or array of data)
- $options
array $options Array of options to use when loading
Returns
mixed
Implementation of
|
public
Guzzle\Service\AbstractConfigLoader
|
#
addAlias( string $filename, string $alias )
Add an include alias to the loader
Add an include alias to the loader
Parameters
- $filename
string $filename Filename to alias (e.g. _foo)
- $alias
string $alias Actual file to use (e.g. /path/to/foo.json)
Returns
|
public
Guzzle\Service\AbstractConfigLoader
|
#
removeAlias( string $alias )
Remove an alias from the loader
Remove an alias from the loader
Parameters
- $alias
string $alias Alias to remove
Returns
|
abstract protected
mixed
|
#
build( array $config, array $options )
Perform the parsing of a config file and create the end result
Perform the parsing of a config file and create the end result
Parameters
- $config
array $config Configuration data
- $options
array $options Options to use when building
Returns
mixed
|
protected
array
|
#
loadFile( string $filename )
Load a configuration file (can load JSON or PHP files that return an array
when included)
Load a configuration file (can load JSON or PHP files that return an array
when included)
Parameters
- $filename
string $filename File to load
Returns
array
Throws
|
protected
array
|
#
mergeIncludes( array & $config, string $basePath = null )
Merges in all include files
Merges in all include files
Parameters
- $config
array $config Config data that contains includes
- $basePath
string $basePath Base path to use when a relative path is encountered
Returns
array Returns the merged and included data
|
protected
array
|
#
mergeData( array $a, array $b )
Default implementation for merging two arrays of data (uses
array_merge_recursive)
Default implementation for merging two arrays of data (uses
array_merge_recursive)
Parameters
- $a
array $a Original data
- $b
array $b Data to merge into the original and overwrite existing values
Returns
array
|