Methods summary
public
|
#
__construct( array $configDirs, string $environment = 'production' )
|
public
mixed
|
#
get( string $key, mixed $default = null )
Get the specified configuration value
Get the specified configuration value
Parameters
Returns
mixed
|
public
|
#
set( string $key, mixed $value )
Set a given configuration value
Set a given configuration value
Parameters
|
public
boolean
|
#
has( string $key )
Determine if the given configuration value exists
Determine if the given configuration value exists
Parameters
Returns
boolean
|
public
boolean
|
#
hasGroup( string $key )
Determine if a configuration group exists
Determine if a configuration group exists
Parameters
Returns
boolean
|
public
array
|
#
getItems( )
Get all of the configuration items
Get all of the configuration items
Returns
array
|
public
array
|
#
getConfigDirs( )
Get directories to search config files for
Get directories to search config files for
Returns
array
|
public
string
|
#
getEnvironment( )
Get current configuration environment
Get current configuration environment
Returns
string
|
protected
array
|
#
parseKey( string $key )
Parse a key into group and item
Parse a key into group and item
Parameters
Returns
array
|
protected
array
|
#
parseBasicSegments( array $segments )
Parse an array of basic segments
Parse an array of basic segments
Parameters
Returns
array
|
protected
|
#
load( string $group )
Load the configuration group for the key
Load the configuration group for the key
Parameters
|
protected
array
|
#
loadItems( string $environment, string $group )
Load the given configuration group
Load the given configuration group
Parameters
Returns
array
|
public
boolean
|
#
exists( string $group )
Determine if the given group exists
Determine if the given group exists
Parameters
Returns
boolean
|
protected
array
|
#
mergeEnvironment( array $items, string $file )
Merge the items in the given file into the items
Merge the items in the given file into the items
Parameters
Returns
array
|
protected
mixed
|
#
getRequire( string $path )
Get the returned value of a file
Get the returned value of a file
Parameters
Returns
mixed
|
public
boolean
|
#
offsetExists( string $key )
Determine if the given configuration option exists
Determine if the given configuration option exists
Parameters
Returns
boolean
Implementation of
ArrayAccess::offsetExists()
|
public
mixed
|
#
offsetGet( string $key )
Get a configuration option
Get a configuration option
Parameters
Returns
mixed
Implementation of
ArrayAccess::offsetGet()
|
public
|
#
offsetSet( string $key, mixed $value )
Set a configuration option
Set a configuration option
Parameters
Implementation of
ArrayAccess::offsetSet()
|
public
|
#
offsetUnset( string $key )
Unset a configuration option
Unset a configuration option
Parameters
Implementation of
ArrayAccess::offsetUnset()
|
public
array
|
#
files( )
Returns unique config file names across all config dirs
Returns unique config file names across all config dirs
Returns
array
|