$main
$main : \Orpheus\Config\Config
Contains the main configuration, reachable from everywhere.
The YAML configuration class
This class is made to get YAML configuration.
$main : \Orpheus\Config\Config
Contains the main configuration, reachable from everywhere.
load( $source, $cached = true) : boolean
Load new configuration from source
$source | An identifier to get the source |
|
$cached | True if this configuration should be cached |
True if this configuration was loaded successfully
Load a configuration from a source identified by $source.
build( $source, $minor = false, $cached = true)
Build new configuration source
$source | An identifier to build the source. |
|
$minor | True if this is a minor configuration. |
|
$cached | True if this configuration should be cached. Build a configuration from $source using load() method. If it is not a minor configuration, that new configuration is added to the main configuration. |
parse( $source) : \Orpheus\Config\YAML\The
Parse configuration from given source.
$source | An identifier or a path to get the source. |
loaded configuration array.
If an identifier, load a configuration from a .yaml file in CONFDIR. Else $source is a full path to the YAML configuration file.