lithium\storage\Session::adapter()
Overrides
lithium\core\Adaptable::adapter()
Returns the adapter object instance of the named configuration.
Parameters
-
string
$name
Named configuration. If not set, the last configured adapter object instance will be returned.
Returns
objectAdapter instance.
Source
public static function adapter($name = null) {
if (!$name) {
if (!$names = array_keys(static::$_configurations)) {
return;
}
$name = end($names);
}
return parent::adapter($name);
}