lithium\core\Adaptable::_config()
Gets an array of settings for the given named configuration in the current environment.
The default types of settings for all adapters will contain keys for:
adapter
- The class name of the adapter
filters
- An array of filters to be applied to the adapter methods
Parameters
-
string
$name
Named configuration.
Returns
array|nullSettings for the named configuration.
Source
protected static function _config($name) {
if (!isset(static::$_configurations[$name])) {
return null;
}
$settings = static::$_configurations[$name];
if (isset($settings[0])) {
return $settings[0];
}
$env = Environment::get();
$config = isset($settings[$env]) ? $settings[$env] : $settings;
if (isset($settings[$env]) && isset($settings[true])) {
$config += $settings[true];
}
static::$_configurations[$name] += array(static::_initConfig($name, $config));
return static::$_configurations[$name][0];
}