lithium\security\Auth::_initConfig()
Overrides
lithium\core\Adaptable::_initConfig()
Called when an adapter configuration is first accessed, this method sets the default configuration for session handling. While each configuration can use its own session class and options, this method initializes them to the default dependencies written into the class. For the session key name, the default value is set to the name of the configuration.
Parameters
-
string
$name
The name of the adapter configuration being accessed.
-
array
$config
The user-specified configuration.
Returns
arrayReturns an array that merges the user-specified configuration with the generated default values.
Source
protected static function _initConfig($name, $config) {
$defaults = ['session' => [
'key' => $name,
'class' => static::$_classes['session'],
'options' => [],
'persist' => []
]];
$config = parent::_initConfig($name, $config) + $defaults;
$config['session'] += $defaults['session'];
return $config;
}